git-fetch: avoid using "case ... in (arm)"
NetBSD ash chokes on the optional open parenthesis for case arms. Inside $(command substitution), however, bash barfs without. So adjust things accordingly. Originally pointed out by Dennis Stosberg. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
May 28, 2006 at 19:24 UTC
878ccb26941a15312b6676372e4688d42a73882b
1 file changed
+3
-3
git-fetch.sh
+3
-3
@@ -211,12 +211,12 @@ esac
211
reflist=$(get_remote_refs_for_fetch "$@")
212
if test "$tags"
213
then
214
- taglist=$(IFS=" " &&
214
+ taglist=`IFS=" " &&
215
git-ls-remote $upload_pack --tags "$remote" |
216
while read sha1 name
217
do
218
case "$name" in
219
- (*^*) continue ;;
219
+ *^*) continue ;;
220
esac
221
if git-check-ref-format "$name"
222
then
@@ -224,7 +224,7 @@ then
224
else
225
echo >&2 "warning: tag ${name} ignored"
226
fi
227
- done)
227
+ done`
228
if test "$#" -gt 1
229
then
230
# remote URL plus explicit refspecs; we need to merge them.