From cd1d7ff81e0b4ab481f83ff883505dbf2442d5be Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Thu, 4 Jun 2009 16:15:53 -0700 Subject: [PATCH] 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 --- subcmds/sync.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subcmds/sync.py b/subcmds/sync.py index ecb89a10..ad05cadd 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -217,6 +217,10 @@ uncommitted changes are present' % project.relpath missing.append(project) self._Fetch(missing) + if self.manifest.IsMirror: + # bail out now, we have no working tree + return + if self.UpdateProjectList(): sys.exit(1)