Skip to content

Commit

Permalink
git-fetch: avoid using "case ... in (arm)"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed May 29, 2006
1 parent d177e58 commit 878ccb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,20 +211,20 @@ 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
echo ".${name}:${name}"
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.
Expand Down

0 comments on commit 878ccb2

Please sign in to comment.