aboutsummaryrefslogtreecommitdiff
path: root/t/t7502-commit.sh
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2010-10-03 14:00:14 -0600
committerJunio C Hamano <gitster@pobox.com>2010-10-06 13:26:33 -0700
commit00648ba0505bbe1999bb6ae2f1d02a0ef923b191 (patch)
treea6bd5229da9fd44b8f29be12cb900d3ef8500868 /t/t7502-commit.sh
parentbc0f35ca238ff88829cd9839641a316e859348a2 (diff)
downloadgit-00648ba0505bbe1999bb6ae2f1d02a0ef923b191.tar.gz
git-00648ba0505bbe1999bb6ae2f1d02a0ef923b191.tar.xz
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-xt/t7502-commit.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t7502-commit.sh b/t/t7502-commit.sh
index ac2e187a5..c1c66450a 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"
) &&