Merge branch 'sc/difftool-p4merge'
[gitweb.git] / t / t6050-replace.sh
index 8b8bd81c099964d188c8152f670a5b45e8739954..d4818b430aad556cec959d8be221eb7548a55707 100755 (executable)
@@ -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 <<EOF
 object $HASH2
 type commit