Subject: | Bug in git-stitch-repo? |
Date: | Sun, 18 May 2014 15:46:05 +0200 |
To: | bug-Git-FastExport [...] rt.cpan.org |
From: | Henning Moll <newsScott [...] gmx.de> |
After doing a
$ git-stitch-repo ../A:A ../B:B | git fast-import
I would expect
only a A directory in the root after git checkout master-A and
only a B directory in the root after git checkout master-B
But there is also a A directory after checkout master-B. (Sometimes it's
vice versa). Here’s how to reproduce
mkdir A; cd A; git init; echo "a" > x; git add x; git commit -m 'x
added'; cd ..
mkdir B; cd B; git init; echo "b" > x; git add x; git commit -m 'x
added'; cd ..
mkdir R; cd R; git init; git-stitch-repo ../A:A ../B:B | git
fast-import; cd ..
cd R; git checkout master-A; ls -1 | grep B; cd ..
cd R; git checkout master-B; ls -1 | grep A; cd ..
None of the grep commands should report anything, but one does…
Note that there is also content below the 'false' directory...
git: 1.7.9.5
perl: v5.14.2
git-stitch-repo version 0.104
mkdir A; cd A; git init; echo "a" > x; git add x; git commit -m 'x
added'; cd ..
mkdir B; cd B; git init; echo "b" > x; git add x; git commit -m 'x
added'; cd ..
mkdir R; cd R; git init; git-stitch-repo ../A:A ../B:B | git
fast-import; cd ..
cd R; git checkout master-A; ls -1 | grep B; cd ..
cd R; git checkout master-B; ls -1 | grep A; cd ..
Best regards
Henning