test: tweak and clarify copy-rename test

... to align it with current git's more restricted behavior
This commit is contained in:
Mark Nauwelaerts
2017-12-03 14:29:13 +01:00
parent 476ffcbde0
commit 9f6c541a2c

View File

@@ -491,8 +491,11 @@ testcopyrename='
cd gitrepo &&
cp content content-copy &&
# recent git-fast-export is (too) picky in recognizing copies
# although git-log is not as picky (????)
# echo one > content &&
# although git-log is not as picky;
# since https://github.com/git/git/commit/8096e1d385660c159d9d47e69b2be63cf22e4f31
# a copy is only marked if source filed not modified as well
# (though destination file can be modified)
echo one >> content-copy &&
git add content content-copy &&
git commit -m copy &&
git mv content-copy content-moved