git-repo/subcmds
David Pursehouse f46902a800 forall: Clarify expansion of REPO_ environment values with -c
If a user executes:

  repo forall -c echo $REPO_PROJECT

then $REPO_NAME is expanded by the user's shell first, and passed
as $1 to the shell that executes echo. This will either result in
no output, or output of whatever REPO_NAME is set to in the user's
shell. Either way, this is an unexpected result.

The correct way to do it is:

  repo forall -c 'echo $REPO_PROJECT'

such that $REPO_NAME is passed in to the shell literally, and then
expanded to the value set in the environment that was passed to
the shell.

Update the documentation to make this clearer.

Change-Id: I713caee914172ad8d8f0fafacd27026502436f0d
2017-10-31 13:07:55 +09:00
..
__init__.py Some fixes for supporting python3 2013-04-18 21:35:49 +05:30
abandon.py abandon: fix usage of undefined variable 2017-05-26 21:52:23 +09:00
branches.py Provide detail print-out when not all projects of a branch are current. 2014-07-11 10:56:03 -07:00
checkout.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
cherry_pick.py Fix 'repo cherry-pick' to avoid hanging on commit-msg update. 2015-06-22 08:00:20 -04:00
diff.py Option for 'repo diff' to generate output suitable for 'patch' cmd 2012-04-13 09:20:10 -07:00
diffmanifests.py diffmanifests: support custom git pretty format strings 2016-04-21 18:36:11 +00:00
download.py download: try to choose . as default project if none 2017-07-12 10:15:06 +02:00
forall.py forall: Clarify expansion of REPO_ environment values with -c 2017-10-31 13:07:55 +09:00
gitc_delete.py Workaround shutil.rmtree limitation on Windows 2017-05-29 19:32:31 +09:00
gitc_init.py Fix gitc-init behavior 2015-10-07 15:43:22 -07:00
grep.py Tidy up code formatting a bit more 2012-11-14 12:09:38 +09:00
help.py Add GitcClientCommand class for GITC-specific commands 2015-09-29 13:46:34 -07:00
info.py Prevent repo info from crashing when default element doesn't exist. 2015-07-27 16:56:31 -07:00
init.py Merge changes from topic "windows-support" 2017-08-30 10:24:03 +00:00
list.py Support filtering by group on forall and list subcmd 2015-07-30 12:59:35 -05:00
manifest.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
overview.py Some fixes for supporting python3 2013-04-18 21:35:49 +05:30
prune.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
rebase.py Add option to rebase onto project's manifest version 2016-01-28 10:20:03 -08:00
selfupdate.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
smartsync.py Clean up imports 2012-09-18 09:54:57 +02:00
stage.py Fix "list comprehension redefines 'x'" warnings from pyflakes 2017-07-10 23:26:04 +00:00
start.py When starting a branch, do not use a tag or change value for branch.merge 2017-08-25 09:10:29 +09:00
status.py status: add -q/--quiet option 2016-10-17 15:24:09 -05:00
sync.py Replace all os.remove calls 2017-08-31 13:49:36 -07:00
upload.py Add option '--no-cert-checks' for 'upload' sub command. 2017-08-23 14:06:14 +02:00
version.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00