Go to file
Shawn O. Pearce c95583bf4f Don't permit users to run repo status in a mirror client
If a client was created with "repo init --mirror" then there are
no working directories present, and no files checked out.  Using
a command like "repo status" in this context makes no sense, and
actually throws back a Pytyon traceback at the console when the
underlying commands fail out.

We now tag commands with the MirrorSafeCommand type if they are
able to be executed within a mirror directory safely.  Using a
command in a mirror which lacks this base class results in a
useful error letting you know the command isn't supported.

Bug: REPO-14
Signed-off-by: Shawn O. Pearce <sop@google.com>
2009-03-03 17:47:06 -08:00
docs Support <remove-project name="X"> in manifest to remove/replace X 2008-11-20 11:54:46 -08:00
hooks Install a default pre-auto-gc hook in all repositories 2008-11-03 11:00:44 -08:00
subcmds Don't permit users to run repo status in a mirror client 2009-03-03 17:47:06 -08:00
.gitignore Initial Contribution 2008-10-21 07:00:00 -07:00
color.py Fix color parsing to not crash when user defined colors are set 2009-02-02 16:17:02 -08:00
command.py Don't permit users to run repo status in a mirror client 2009-03-03 17:47:06 -08:00
COPYING Initial Contribution 2008-10-21 07:00:00 -07:00
editor.py Make repo's editor work when the editor is a commandline with 2008-11-14 21:12:44 -05:00
error.py Report better errors when a project revision is invalid 2009-03-02 12:56:08 -08:00
git_command.py Initial Contribution 2008-10-21 07:00:00 -07:00
git_config.py Support Gerrit2's ssh:// based upload 2009-01-05 16:34:27 -08:00
main.py Don't permit users to run repo status in a mirror client 2009-03-03 17:47:06 -08:00
manifest.py Support <remove-project name="X"> in manifest to remove/replace X 2008-11-20 11:54:46 -08:00
pager.py Initial Contribution 2008-10-21 07:00:00 -07:00
project.py Get rid of the horrible android import work around hack 2009-03-03 13:52:20 -08:00
remote.py Add <remote project-name="..."> attribute within projects 2008-11-06 11:23:06 -08:00
repo Correct the REPO_URL in the wrapper script to android.git.kernel.org 2008-12-18 07:21:32 -08:00