Go to file
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
docs Adding include element into the top-level element 2017-05-27 04:26:15 +00:00
hooks pre-auto-gc: Add support for Windows 2017-05-03 11:26:21 +00:00
subcmds forall: Clarify expansion of REPO_ environment values with -c 2017-10-31 13:07:55 +09:00
tests Fix gitc-init behavior 2015-10-07 15:43:22 -07:00
.flake8 Replace pylint with pyflakes/flake8 2016-09-14 09:49:02 +02:00
.gitattributes Adds additional crlf clobber avoidance. 2016-06-22 08:36:45 +00:00
.gitignore Add repoc to the .gitignore file 2013-03-08 01:18:08 +00:00
.mailmap Update .mailmap 2017-05-26 21:44:57 +09:00
.project Set correct name in PyDev and Eclipse project config 2013-04-19 09:35:43 +09:00
.pydevproject Set correct name in PyDev and Eclipse project config 2013-04-19 09:35:43 +09:00
color.py Pylint and PEP8 fixes for color.py 2015-03-28 21:12:27 +00:00
command.py sync: Add support to dump a JSON event log of all sync events. 2017-05-29 13:39:54 +09:00
COPYING Initial Contribution 2008-10-21 07:00:00 -07:00
editor.py Allow quotes in editor command on Windows 2017-08-31 13:49:49 -07:00
error.py error: fix typos 2015-06-04 00:21:16 +00:00
event_log.py sync: Add support to dump a JSON event log of all sync events. 2017-05-29 13:39:54 +09:00
git_command.py Set GIT_SSH_VARIANT when setting GIT_SSH 2017-10-19 14:39:26 -07:00
git_config.py Replace all os.remove calls 2017-08-31 13:49:36 -07:00
git_refs.py Handle Windows line endings when reading binary files 2017-08-31 12:13:52 -07:00
git_ssh Don't allow git fetch to start ControlMaster 2010-10-29 08:15:14 -07:00
gitc_utils.py gitc: Lower concurrent ls-projects requests 2016-08-23 14:19:00 -07:00
main.py Support pager on Windows 2017-08-31 13:49:26 -07:00
manifest_xml.py Replace all os.remove calls 2017-08-31 13:49:36 -07:00
pager.py Support pager on Windows 2017-08-31 13:49:26 -07:00
platform_utils_win32.py Implement islink, readlink and realpath using Win32 api 2017-08-31 13:49:01 -07:00
platform_utils.py Replace all os.remove calls 2017-08-31 13:49:36 -07:00
progress.py Always print percentage when syncing quietly 2017-07-15 16:44:55 +00:00
project.py Provide more specific error message for symlinks errors on Windows 2017-08-31 13:49:59 -07:00
pyversion.py Move Python version checking to a separate module 2013-05-23 07:28:53 +00:00
README.md improve docs 2016-08-16 00:14:28 -04:00
repo Ensure repo waits for child process to terminate 2017-05-29 13:56:18 +09:00
SUBMITTING_PATCHES.md Replace pylint with pyflakes/flake8 2016-09-14 09:49:02 +02:00
trace.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
wrapper.py Add wrapper module 2014-01-30 15:17:09 -08:00

repo

Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to revision control systems, and automates parts of the development workflow. Repo is not meant to replace Git, only to make it easier to work with Git. The repo command is an executable Python script that you can put anywhere in your path.