ruby-changes:46353
From: nobu <ko1@a...>
Date: Mon, 24 Apr 2017 20:52:22 +0900 (JST)
Subject: [ruby-changes:46353] nobu:r58467 (trunk): tool/git-refresh: fix branch operations
nobu 2017-04-24 20:52:14 +0900 (Mon, 24 Apr 2017) New Revision: 58467 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58467 Log: tool/git-refresh: fix branch operations Modified files: trunk/tool/git-refresh Index: tool/git-refresh =================================================================== --- tool/git-refresh (revision 58466) +++ tool/git-refresh (revision 58467) @@ -33,10 +33,10 @@ if [ -d "$dir" ]; then https://github.com/ruby/ruby/blob/trunk/tool/git-refresh#L33 echo updating `expr "/$dir/" : '.*/\([^/][^/]*\)/'` ... [ $quiet ] || set -x $CHDIR "$dir" - git fetch "$@" - exec git checkout ${branch:+"$branch"} "$@" + ${branch:+git fetch "$@"} + exec git ${branch:+checkout} "${branch:-pull}" "$@" else echo retrieving `expr "/$dir/" : '.*/\([^/][^/]*\)/'` ... [ $quiet ] || set -x - exec git clone "$url" "$dir" "$@" + exec git clone ${branch:+--branch "$branch"} "$url" "$dir" "$@" fi -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/