path: root/t/
diff options
authorBrandon Casey <>2011-01-06 00:30:02 (GMT)
committerJunio C Hamano <>2011-01-06 20:22:36 (GMT)
commited40ec551d4517323c6a46aa555b83cc7651ddbc (patch)
tree9293c1162d75832b1ae4a33cdb1ad849654399ac /t/
parente83c267f71dfef72926807cd69aa8d570e57714e (diff)
t0001,t1510,t3301: use sane_unset which always returns with status 0
On some shells (like /usr/xpg4/bin/sh on Solaris), unset will exit non-zero when passed the name of a variable that has not been set. Use sane_unset instead so that the return value of unset can be ignored while the && linkage of the test script can be preserved. Signed-off-by: Brandon Casey <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/')
1 files changed, 1 insertions, 1 deletions
diff --git a/t/ b/t/
index dc2e04a..1921ca3 100755
--- a/t/
+++ b/t/
@@ -1067,7 +1067,7 @@ test_expect_success 'git notes copy diagnoses too many or too few parameters' '
test_expect_success 'git notes get-ref (no overrides)' '
git config --unset core.notesRef &&
- unset GIT_NOTES_REF &&
+ sane_unset GIT_NOTES_REF &&
test "$(git notes get-ref)" = "refs/notes/commits"