diff options
author | Christian Halstrick <christian.halstrick@sap.com> | 2012-09-03 08:15:31 -0400 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2012-09-03 08:15:31 -0400 |
commit | 32e952fefda1d97385e92a5621324485c3886cc2 (patch) | |
tree | fc3511ae84632538e825108d2b847124f902110c /org.eclipse.jgit.test | |
parent | 9d3110e72d943bae6139d4ddfc3ebd6e9d00b0e8 (diff) | |
parent | 252727c4fcfb1277661b9e9e3396e6ccd488cc82 (diff) | |
download | jgit-32e952fefda1d97385e92a5621324485c3886cc2.tar.gz jgit-32e952fefda1d97385e92a5621324485c3886cc2.zip |
Merge "Support branches with name 'config'"
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/RefDirectoryTest.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/RefDirectoryTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/RefDirectoryTest.java index 153f7b791c..a602f7c7d5 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/RefDirectoryTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/RefDirectoryTest.java @@ -360,6 +360,19 @@ public class RefDirectoryTest extends LocalDiskRepositoryTestCase { } @Test + public void testReadNotExistingBranchConfig() throws IOException { + assertNull("find branch config", refdir.getRef("config")); + assertNull("find branch config", refdir.getRef("refs/heads/config")); + } + + @Test + public void testReadBranchConfig() throws IOException { + writeLooseRef("refs/heads/config", A); + + assertNotNull("find branch config", refdir.getRef("config")); + } + + @Test public void testGetRefs_HeadsOnly_AllLoose() throws IOException { Map<String, Ref> heads; Ref a, b; |