summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rwxr-xr-xproject.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/project.py b/project.py
index 6a48c23a..3d22998e 100755
--- a/project.py
+++ b/project.py
@@ -1499,6 +1499,13 @@ class Project(object):
1499 """Perform only the local IO portion of the sync process. 1499 """Perform only the local IO portion of the sync process.
1500 Network access is not required. 1500 Network access is not required.
1501 """ 1501 """
1502 if not os.path.exists(self.gitdir):
1503 syncbuf.fail(self,
1504 'Cannot checkout %s due to missing network sync; Run '
1505 '`repo sync -n %s` first.' %
1506 (self.name, self.name))
1507 return
1508
1502 self._InitWorkTree(force_sync=force_sync, submodules=submodules) 1509 self._InitWorkTree(force_sync=force_sync, submodules=submodules)
1503 all_refs = self.bare_ref.all 1510 all_refs = self.bare_ref.all
1504 self.CleanPublishedCache(all_refs) 1511 self.CleanPublishedCache(all_refs)