t1400: provide more usual input to the command

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 <newvalue> is empty, which is a bit off the beaten track. So, to be sure that we are testing what we want to test, provide an actual <newvalue> on the "update" line. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael Haggerty committed Apr 7, 2014 at 15:47 UTC c13291108880f9adc26a2ab5c09535869afecb22
1 file changed +1 -1
t/t1400-update-ref.sh
+1 -1
@@ -912,7 +912,7 @@ test_expect_success 'stdin -z update refs works with identity updates' '
912
913 test_expect_success 'stdin -z update refs fails with wrong old value' '
914 git update-ref $c $m &&
915 - printf $F "update $a" "$m" "$m" "update $b" "$m" "$m" "update $c" "" "$Z" >stdin &&
915 + printf $F "update $a" "$m" "$m" "update $b" "$m" "$m" "update $c" "$m" "$Z" >stdin &&
916 test_must_fail git update-ref -z --stdin <stdin 2>err &&
917 grep "fatal: Cannot lock the ref '"'"'$c'"'"'" err &&
918 git rev-parse $m >expect &&