Tests and fixes for dereferencing tags in Repository.resolve()
commit1f460e2f5ff983a277bfb214a8112f1c74a24052
authorJonas Fonseca <fonseca@diku.dk>
Fri, 12 Sep 2008 10:57:50 +0000 (12 12:57 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Fri, 12 Sep 2008 22:14:26 +0000 (13 00:14 +0200)
treef7306134ca3c1d25f6e56efcbd384810c50b193e
parent2dd5e3f849d945e9a180591fa42ba24aeed0469a
Tests and fixes for dereferencing tags in Repository.resolve()

Fix Repository.resolve("tag^0") failing with "not a commit" (issue 23).
Add test for resolving "tag^{tree}" where "tag" points to a tag

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/test/resources/create-second-pack
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/test/resources/pack-546ff360fe3488adb20860ce3436a2d6373d2796.idx [new file with mode: 0755]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/test/resources/pack-546ff360fe3488adb20860ce3436a2d6373d2796.pack [new file with mode: 0755]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/test/resources/packed-refs
org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryTestCase.java
org.spearce.jgit.test/tst/org/spearce/jgit/lib/T0008_testparserev.java
org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java