From: Junio C Hamano Date: Mon, 29 May 2006 02:24:28 +0000 (-0700) Subject: git-fetch: avoid using "case ... in (arm)" X-Git-Tag: v1.4.0-rc1~47 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=878ccb26941a15312b6676372e4688d42a73882b;p=git.git 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 --- diff --git a/git-fetch.sh b/git-fetch.sh index 280f62e4..69bd8100 100755 --- a/git-fetch.sh +++ b/git-fetch.sh @@ -211,12 +211,12 @@ esac reflist=$(get_remote_refs_for_fetch "$@") if test "$tags" then - taglist=$(IFS=" " && + taglist=`IFS=" " && git-ls-remote $upload_pack --tags "$remote" | while read sha1 name do case "$name" in - (*^*) continue ;; + *^*) continue ;; esac if git-check-ref-format "$name" then @@ -224,7 +224,7 @@ then else echo >&2 "warning: tag ${name} ignored" fi - done) + done` if test "$#" -gt 1 then # remote URL plus explicit refspecs; we need to merge them.