diff options
author | Elijah Newren <newren@gmail.com> | 2010-10-03 14:00:14 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-10-06 13:26:33 -0700 |
commit | 00648ba0505bbe1999bb6ae2f1d02a0ef923b191 (patch) | |
tree | a6bd5229da9fd44b8f29be12cb900d3ef8500868 /t/t7502-commit.sh | |
parent | bc0f35ca238ff88829cd9839641a316e859348a2 (diff) | |
download | git-00648ba0505bbe1999bb6ae2f1d02a0ef923b191.tar.gz |
Introduce sane_unset and use it to ensure proper && chaining
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7502-commit.sh')
-rwxr-xr-x | t/t7502-commit.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t7502-commit.sh b/t/t7502-commit.sh index ac2e187a57..c1c66450a3 100755 --- a/t/t7502-commit.sh +++ b/t/t7502-commit.sh @@ -252,8 +252,8 @@ test_expect_success 'committer is automatic' ' echo >>negative && ( - unset GIT_COMMITTER_EMAIL - unset GIT_COMMITTER_NAME + sane_unset GIT_COMMITTER_EMAIL && + sane_unset GIT_COMMITTER_NAME && # must fail because there is no change test_must_fail git commit -e -m "sample" ) && |