summaryrefslogtreecommitdiff
path: root/t/t3301-notes.sh
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2011-01-06 00:30:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-01-06 20:22:36 (GMT)
commited40ec551d4517323c6a46aa555b83cc7651ddbc (patch)
tree9293c1162d75832b1ae4a33cdb1ad849654399ac /t/t3301-notes.sh
parente83c267f71dfef72926807cd69aa8d570e57714e (diff)
downloadgit-ed40ec551d4517323c6a46aa555b83cc7651ddbc.zip
git-ed40ec551d4517323c6a46aa555b83cc7651ddbc.tar.gz
git-ed40ec551d4517323c6a46aa555b83cc7651ddbc.tar.bz2
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 dc2e04a..1921ca3 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"
'