Signed-off-by: Robin Rosenberg <robin.rosenberg@xxxxxxxxxx> --- .../tst/org/spearce/jgit/lib/RefUpdateTest.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/org.spearce.jgit.test/tst/org/spearce/jgit/lib/RefUpdateTest.java b/org.spearce.jgit.test/tst/org/spearce/jgit/lib/RefUpdateTest.java index 6e2cfa8..12f9ada 100644 --- a/org.spearce.jgit.test/tst/org/spearce/jgit/lib/RefUpdateTest.java +++ b/org.spearce.jgit.test/tst/org/spearce/jgit/lib/RefUpdateTest.java @@ -39,6 +39,8 @@ import java.io.File; import java.io.IOException; +import java.util.Map; +import java.util.Map.Entry; import org.spearce.jgit.lib.RefUpdate.Result; @@ -127,4 +129,12 @@ public void testDeleteEmptyDirs() throws IOException { private void assertExists(final boolean expected, final String name) { assertEquals(expected, new File(db.getDirectory(), name).exists()); } + + public void testRefKeySameAsOrigName() { + Map<String, Ref> allRefs = db.getAllRefs(); + for (Entry<String, Ref> e : allRefs.entrySet()) { + assertEquals(e.getKey(), e.getValue().getOrigName()); + + } + } } -- 1.6.0.3.578.g6a50 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html