X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft6050-replace.sh;h=203ffdb17a914654d35416575b6797a2825ce4e6;hb=92de348948d59f797dd4f15d6a4558c0563203b1;hp=8b8bd81c099964d188c8152f670a5b45e8739954;hpb=78b77c491ff21e27dbaf1381268aeb380f0607b8;p=git.git diff --git a/t/t6050-replace.sh b/t/t6050-replace.sh index 8b8bd81c0..203ffdb17 100755 --- a/t/t6050-replace.sh +++ b/t/t6050-replace.sh @@ -70,6 +70,18 @@ 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" +' + +test_expect_success 'test GIT_NO_REPLACE_OBJECTS env variable' ' + GIT_NO_REPLACE_OBJECTS=1 git cat-file commit $HASH2 | grep "author A U Thor" && + GIT_NO_REPLACE_OBJECTS=1 git show $HASH2 | grep "A U Thor" +' + cat >tag.sig <