git-repo/subcmds
Dan Willemsen 04197a5144 GITC: Fix 'repo start <branch> <repo>/<subdir>'
As soon as we wrote the gitc manifest, the folder for that repo became
empty, causing the next GetProjects lookup to fail. Reorder the
GetProjects calls so that they all happen while we still have the
repository contents available.

If you were already in a subdir, for cases like 'repo start <branch> .',
this would still fail, since the working directory would disappear out
from under you. That's fine most of the time, since we shouldn't be
doing operations based on the local directory, but git has a realpath
function that tries to restore CWD by chdir'ing back to it. So if the
working directory no longer exists, chdir to the topdir before
continuing.

Change-Id: Ibdf6cd37ff6e5a5f8338347c3919175491f7166f
2016-02-04 14:31:55 -08:00
..
__init__.py Some fixes for supporting python3 2013-04-18 21:35:49 +05:30
abandon.py Change print statements to work in python3 2012-11-13 17:33:56 -08: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 Add the "diffmanifests" command 2014-02-17 11:20:11 +00:00
download.py Exit 1 if repo download -c fails 2014-10-17 15:45:57 -04:00
forall.py Support filtering by group on forall and list subcmd 2015-07-30 12:59:35 -05:00
gitc_delete.py GITC: Add repo gitc-delete command. 2015-10-01 21:05:17 +00: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 init: don't call urllib.parse 2015-06-04 00:33:33 +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 repo: Support multiple branches for the same project. 2013-10-14 15:34:32 -07: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 stage: replace filter on lambda with list comprehension 2013-05-08 06:37:15 +01:00
start.py GITC: Fix 'repo start <branch> <repo>/<subdir>' 2016-02-04 14:31:55 -08:00
status.py status: lose dependence on StringIO 2015-04-04 21:21:49 +01:00
sync.py Sync: Add HTTP Cookie File header on temporary cookie file 2015-10-02 11:12:05 +09:00
upload.py upload: report names of uncommitted files 2014-10-14 11:20:05 -07:00
version.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00