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>
reflist=$(get_remote_refs_for_fetch "$@")
if test "$tags"
then
reflist=$(get_remote_refs_for_fetch "$@")
if test "$tags"
then
git-ls-remote $upload_pack --tags "$remote" |
while read sha1 name
do
case "$name" in
git-ls-remote $upload_pack --tags "$remote" |
while read sha1 name
do
case "$name" in
esac
if git-check-ref-format "$name"
then
esac
if git-check-ref-format "$name"
then
else
echo >&2 "warning: tag ${name} ignored"
fi
else
echo >&2 "warning: tag ${name} ignored"
fi
if test "$#" -gt 1
then
# remote URL plus explicit refspecs; we need to merge them.
if test "$#" -gt 1
then
# remote URL plus explicit refspecs; we need to merge them.