mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-01-02 16:14:25 +00:00
sync: Don't process project.list in a mirror
We have no working tree, so we cannot update the project.list state file, nor should we try to delete a directory if a project is removed from the manifest. Clients would still need the repository for historical records. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
da88ff4411
commit
cd1d7ff81e
@ -217,6 +217,10 @@ uncommitted changes are present' % project.relpath
|
|||||||
missing.append(project)
|
missing.append(project)
|
||||||
self._Fetch(missing)
|
self._Fetch(missing)
|
||||||
|
|
||||||
|
if self.manifest.IsMirror:
|
||||||
|
# bail out now, we have no working tree
|
||||||
|
return
|
||||||
|
|
||||||
if self.UpdateProjectList():
|
if self.UpdateProjectList():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user