]> source.dussan.org Git - jgit.git/commit
Peel tags during resolve of foo^ 96/9596/1
authorDave Borowitz <dborowitz@google.com>
Thu, 10 Jan 2013 18:53:54 +0000 (10:53 -0800)
committerDave Borowitz <dborowitz@google.com>
Thu, 10 Jan 2013 18:56:37 +0000 (10:56 -0800)
commit891a2d75e7820e8f18e963e44a4b93ecad49c421
treeb100878ce225976f095c53cf834a42a5cb609fd0
parent4407423d29d3e3b235753f638a1fdf0b553fa64e
Peel tags during resolve of foo^

Once we start talking about parents of tags, we are in the commit
graph, so treat all objects from this point as commits. This fixes
spurious IncorrectObjectTypeExceptions on resolving expressions like
tag^^.

Change-Id: I29ece1fdb49c9c5b9ca415efcd1876bc72e97120
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryResolveTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java