]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5505-remote.sh
t/t5505-remote.sh: escape * to prevent interpretation by shell as glob
authorBrandon Casey <drafnel@gmail.com>
Sat, 20 Mar 2010 00:10:20 +0000 (19:10 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 Mar 2010 15:22:32 +0000 (08:22 -0700)
commit49de47cfb2d717b64cf93c5abeeefb87ee483de0
treeee50e43d7e17a6d4b3cc8c87fa853efcc3859c39
parentf3b1fbf8602e9038ee12a44bbd71b49e6ab59fe1
t/t5505-remote.sh: escape * to prevent interpretation by shell as glob

This test is supposed to check that git-remote correctly refuses to delete
all URLS for the specified remote which match the '.*' regular expression.
Since the '*' was not protected, it was interpreted by the shell as a file
glob and expanded before being passed to git-remote.  The call to
git-remote still exited non-zero in this case, and the overall test still
passed, but it exited non-zero because git-remote was passed the incorrect
number of arguments, not for the reason it was supposed to fail.

Correct the test by escaping the '*'.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5505-remote.sh