summaryrefslogtreecommitdiff
path: root/t/t3301-notes.sh
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2011-01-05 18:30:02 -0600
committerJunio C Hamano <gitster@pobox.com>2011-01-06 12:22:36 -0800
commited40ec551d4517323c6a46aa555b83cc7651ddbc (patch)
tree9293c1162d75832b1ae4a33cdb1ad849654399ac /t/t3301-notes.sh
parente83c267f71dfef72926807cd69aa8d570e57714e (diff)
downloadgit-ed40ec551d4517323c6a46aa555b83cc7651ddbc.tar.gz
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 <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3301-notes.sh')
-rwxr-xr-xt/t3301-notes.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3301-notes.sh b/t/t3301-notes.sh
index dc2e04a016..1921ca3a73 100755
--- a/t/t3301-notes.sh
+++ b/t/t3301-notes.sh
@@ -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"
'