Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-fetch: avoid using "case ... in (arm)"
author
Junio C Hamano
<junkio@cox.net>
Mon, 29 May 2006 02:24:28 +0000
(19:24 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 29 May 2006 02:24:28 +0000
(19:24 -0700)
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>
git-fetch.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
d177e58
)
diff --git
a/git-fetch.sh
b/git-fetch.sh
index 280f62e4b7e1fcdf97f306bab6044b5c383dce0d..69bd810082655a6ee7594e86a6e8e28e3e5a43e2 100755
(executable)
--- a/
git-fetch.sh
+++ b/
git-fetch.sh
@@
-211,12
+211,12
@@
esac
reflist=$(get_remote_refs_for_fetch "$@")
if test "$tags"
then
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
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
esac
if git-check-ref-format "$name"
then
@@
-224,7
+224,7
@@
then
else
echo >&2 "warning: tag ${name} ignored"
fi
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.
if test "$#" -gt 1
then
# remote URL plus explicit refspecs; we need to merge them.