r114531 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114530‎ | r114531 | r114532 >
Date:17:05, 27 March 2012
Author:platonides
Status:deferred (Comments)
Tags:
Comment:
Show the folder in which we're executing each subcommand
if passed the -v parameter.
Modified paths:
  • /trunk/tools/code-utils/subgits (modified) (history)

Diff [purge]

Index: trunk/tools/code-utils/subgits
@@ -12,5 +12,11 @@
1313 # For updating all the repositories:
1414 # subgits pull
1515
16 -find -name .git -execdir git "$@" \;
 16+EXTRA=""
 17+if [ "$1" == "-v" ]; then
 18+ shift
 19+ EXTRA="-execdir pwd ;"
 20+fi
1721
 22+find -name .git $EXTRA -execdir git "$@" \;
 23+

Follow-up revisions

RevisionCommit summaryAuthorDate
r114573The portable way is to perform a string comparison using...platonides20:49, 28 March 2012

Comments

#Comment by Reedy (talk | contribs)   19:38, 27 March 2012

Yay. I was going to ask for something like this to be added

#Comment by Reedy (talk | contribs)   19:41, 27 March 2012
reedy@ubuntu64-web-esxi:~/git/mediawiki$ ./subgits pull
[: 19: pull: unexpected operator
Already up-to-date.
#Comment by Platonides (talk | contribs)   20:50, 28 March 2012

dash is more strict there, bash seems to accept both = and ==. Fixed in r114573.

Status & tagging log