summaryrefslogtreecommitdiff
path: root/t/t6050-replace.sh
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2013-12-11 07:46:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-12-12 19:53:49 (GMT)
commit1f7117ef7a39ff359a964e681f360f50d7a1c8f2 (patch)
tree94ef4f49fa84e865f82985fc773fc2b97abb2fec /t/t6050-replace.sh
parent303c5d65c972de2e9d0821647b06ab595c21d355 (diff)
downloadgit-1f7117ef7a39ff359a964e681f360f50d7a1c8f2.zip
git-1f7117ef7a39ff359a964e681f360f50d7a1c8f2.tar.gz
git-1f7117ef7a39ff359a964e681f360f50d7a1c8f2.tar.bz2
sha1_file: perform object replacement in sha1_object_info_extended()
sha1_object_info_extended() should perform object replacement if it is needed. The simplest way to do that is to make it call lookup_replace_object_extended(). And now its "unsigned flags" parameter is used as it is passed to lookup_replace_object_extended(). Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6050-replace.sh')
-rwxr-xr-xt/t6050-replace.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t6050-replace.sh b/t/t6050-replace.sh
index b90dbdc..bb785ec 100755
--- a/t/t6050-replace.sh
+++ b/t/t6050-replace.sh
@@ -276,7 +276,7 @@ test_expect_success '-f option bypasses the type check' '
git replace -f HEAD^ $BLOB
'
-test_expect_failure 'git cat-file --batch works on replace objects' '
+test_expect_success 'git cat-file --batch works on replace objects' '
git replace | grep $PARA3 &&
echo $PARA3 | git cat-file --batch
'