summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.packaging/org.eclipse.jgit.pgm.source.feature/feature.xml
diff options
context:
space:
mode:
authorDave Borowitz <dborowitz@google.com>2012-09-18 19:49:35 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2012-09-18 19:51:57 +0200
commit70ae16d708e0a207035872a16943f8b9151f33cd (patch)
treec4b81dd91f6d1d76808de361b108fd8e97182b63 /org.eclipse.jgit.packaging/org.eclipse.jgit.pgm.source.feature/feature.xml
parenta551493240d5513a101415e55742c689562d6f51 (diff)
downloadjgit-70ae16d708e0a207035872a16943f8b9151f33cd.tar.gz
jgit-70ae16d708e0a207035872a16943f8b9151f33cd.zip
Fix resolving expression with ~ and ^ than extends beyond history
resolve("foo~X") where X is greater than the distance from foo to the root should return null, but 2a2362fb introduced a bug causing it to either return resolve("foo") or NPE. Add a test for the correct behavior. Also add an analogous test for foo^X where X is greater than the number of parents (which was not broken by that commit). Change-Id: Ic580081ece57c8c2df29b652897b425ecb34e11f
Diffstat (limited to 'org.eclipse.jgit.packaging/org.eclipse.jgit.pgm.source.feature/feature.xml')
0 files changed, 0 insertions, 0 deletions