summaryrefslogtreecommitdiffstats
path: root/gitc_utils.py
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2015-10-07 16:53:10 -0700
committerDan Willemsen <dwillemsen@google.com>2016-02-04 14:31:55 -0800
commit04197a5144d6a40ee2d85799b32505250480f365 (patch)
treea44651e81b1b56c999e57ccc1c540e841118f76e /gitc_utils.py
parent745b4ad660f8050045b521c4e15b7d3ac0b3d70e (diff)
downloadgit-repo-04197a5144d6a40ee2d85799b32505250480f365.tar.gz
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
Diffstat (limited to 'gitc_utils.py')
0 files changed, 0 insertions, 0 deletions