X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft6050-replace.sh;h=d4818b430aad556cec959d8be221eb7548a55707;hb=375fe9262b61d924266656ea6615e25a1579c464;hp=8b8bd81c099964d188c8152f670a5b45e8739954;hpb=6ff9ae9f97101c30897332f608f35ad232b1faf2;p=git.git diff --git a/t/t6050-replace.sh b/t/t6050-replace.sh index 8b8bd81c0..d4818b430 100755 --- a/t/t6050-replace.sh +++ b/t/t6050-replace.sh @@ -70,6 +70,13 @@ test_expect_success 'replace the author' ' git show $HASH2 | grep "O Thor" ' +test_expect_success 'test --no-replace-objects option' ' + git cat-file commit $HASH2 | grep "author O Thor" && + git --no-replace-objects cat-file commit $HASH2 | grep "author A U Thor" && + git show $HASH2 | grep "O Thor" && + git --no-replace-objects show $HASH2 | grep "A U Thor" +' + cat >tag.sig <