aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-30 10:53:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-30 10:53:42 +0000
commit1b05d20b7e79dff1709c736e35b8f161b3b074ca (patch)
treea247b3c2bfc78160330378e62c3f85a5db5ad303 /tool
parent917f93133a9edeb63fad8c9b1a5daf7d44d3306a (diff)
downloadruby-1b05d20b7e79dff1709c736e35b8f161b3b074ca.tar.gz
git-refresh: fix for Solaris
* tool/git-refresh: expand for each words. [ruby-dev:50102] [Bug #13522] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/git-refresh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/git-refresh b/tool/git-refresh
index 1c1689cd2c..d36c4d80bc 100755
--- a/tool/git-refresh
+++ b/tool/git-refresh
@@ -34,10 +34,10 @@ if [ -d "$dir" ]; then
echo updating `expr "/$dir/" : '.*/\([^/][^/]*\)/'` ...
[ $quiet ] || set -x
$CHDIR "$dir"
- ${branch+git fetch "$@"}
+ ${branch+git} ${branch+fetch} ${branch+"$@"}
exec git ${branch+checkout} "${branch-pull}" "$@"
else
echo retrieving `expr "/$dir/" : '.*/\([^/][^/]*\)/'` ...
[ $quiet ] || set -x
- exec git clone ${branch+--branch "$branch"} "$url" "$dir" "$@"
+ exec git clone ${branch+--branch} ${branch+"$branch"} "$url" "$dir" "$@"
fi