diff options
author | Brandon Casey <drafnel@gmail.com> | 2011-01-05 18:30:02 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-01-06 12:22:36 -0800 |
commit | ed40ec551d4517323c6a46aa555b83cc7651ddbc (patch) | |
tree | 9293c1162d75832b1ae4a33cdb1ad849654399ac /t/t3301-notes.sh | |
parent | e83c267f71dfef72926807cd69aa8d570e57714e (diff) | |
download | git-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-x | t/t3301-notes.sh | 2 |
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" ' |