Code

git-svn: Demonstrate a bug with root commits in mergeinfo ranges
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 18 Jun 2011 06:47:58 +0000 (08:47 +0200)
committerEric Wong <normalperson@yhbt.net>
Tue, 28 Jun 2011 03:26:06 +0000 (03:26 +0000)
commit555bdc66eab0178d43c509ec53c1d97303675f90
tree4722a59bddafc5883a26d48be7f68bcefb76353c
parentf696543dad6c7ba27b0c4fab167a5687263a9ba0
git-svn: Demonstrate a bug with root commits in mergeinfo ranges

If a svn:mergeinfo range starts at a commit that was converted as a
git root commit (e.g., r1 or a branch that was created out of thin
air), then there is an error when git-svn tries to run

    git rev-list "$bottom_commit^..$top_commit"

because $bottom_commit (the git commit corresponding to r1) has no
parent.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Acked-by: Eric Wong <normalperson@yhbt.net>
t/t9159-git-svn-no-parent-mergeinfo.sh [new file with mode: 0755]