From: Michael Haggerty Date: Mon, 24 Mar 2014 17:56:46 GMT Subject: [PATCH v2 13/27] t1400: Test that stdin -z update treats empty as zeros Message-ID: <1395683820-17304-14-git-send-email-mhagger@alum.mit.edu> In-Reply-To: <1395683820-17304-1-git-send-email-mhagger@alum.mit.edu> This is the (slightly inconsistent) status quo; make sure it doesn't change by accident. Signed-off-by: Michael Haggerty --- t/t1400-update-ref.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/t1400-update-ref.sh b/t/t1400-update-ref.sh index a2015d0..208f56e 100755 --- a/t/t1400-update-ref.sh +++ b/t/t1400-update-ref.sh @@ -730,6 +730,13 @@ test_expect_success 'stdin -z fails update with bad ref name' ' grep "fatal: invalid ref format: ~a" err ' +test_expect_success 'stdin -z treats empty new value as zeros' ' + git update-ref $a $m && + printf $F "update $a" "" "" >stdin && + git update-ref -z --stdin stdin && test_must_fail git update-ref -z --stdin err && -- 1.9.0