From: Michael Haggerty Date: Mon, 10 Mar 2014 12:46:19 GMT Subject: [PATCH 02/26] t1400: Provide sensible input to the command Message-ID: <1394455603-2968-3-git-send-email-mhagger@alum.mit.edu> In-Reply-To: <1394455603-2968-1-git-send-email-mhagger@alum.mit.edu> The old version was passing (among other things) update SP refs/heads/c NUL NUL 0{40} NUL to "git update-ref -z --stdin" to test whether the old-value check for c is working. But the is empty, which is not allowed for the "update" command. So, to be sure that we are testing what we want to test, provide a legitimate on the "update" line. 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 fa927d2..29391c6 100755 --- a/t/t1400-update-ref.sh +++ b/t/t1400-update-ref.sh @@ -912,7 +912,7 @@ test_expect_success 'stdin -z update refs works with identity updates' ' test_expect_success 'stdin -z update refs fails with wrong old value' ' git update-ref $c $m && - printf $F "update $a" "$m" "$m" "update $b" "$m" "$m" "update $c" "" "$Z" >stdin && + printf $F "update $a" "$m" "$m" "update $b" "$m" "$m" "update $c" "$m" "$Z" >stdin && test_must_fail git update-ref -z --stdin err && grep "fatal: Cannot lock the ref '"'"'$c'"'"'" err && git rev-parse $m >expect && -- 1.9.0