From: Michael Haggerty Date: Mon, 10 Mar 2014 12:46:20 GMT Subject: [PATCH 03/26] t1400: Pass a legitimate to update command Message-ID: <1394455603-2968-4-git-send-email-mhagger@alum.mit.edu> In-Reply-To: <1394455603-2968-1-git-send-email-mhagger@alum.mit.edu> This test is trying to test a few ways to delete references using "git update-ref -z --stdin". The third line passed in is update SP /refs/heads/c NUL NUL NUL , which is not a correct way to delete a reference according to the documentation (the new value should be zeros, not empty). Pass zeros instead as the new value to test the code correctly. Signed-off-by: Michael Haggerty --- t/t1400-update-ref.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t1400-update-ref.sh b/t/t1400-update-ref.sh index 29391c6..e2f1dfa 100755 --- a/t/t1400-update-ref.sh +++ b/t/t1400-update-ref.sh @@ -927,7 +927,7 @@ test_expect_success 'stdin -z update refs fails with wrong old value' ' test_expect_success 'stdin -z delete refs works with packed and loose refs' ' git pack-refs --all && git update-ref $c $m~1 && - printf $F "delete $a" "$m" "update $b" "$Z" "$m" "update $c" "" "$m~1" >stdin && + printf $F "delete $a" "$m" "update $b" "$Z" "$m" "update $c" "$Z" "$m~1" >stdin && git update-ref -z --stdin