Code

Introduce sane_unset and use it to ensure proper && chaining
[git.git] / t / t7502-commit.sh
index ac2e187a5720d1ff947e58073dd6cc403ef40d5d..c1c66450a395af91c54e7815ae7c21393f7fd2ad 100755 (executable)
@@ -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"
        ) &&