summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/project.py b/project.py
index 9cb7542e..fb9df2aa 100644
--- a/project.py
+++ b/project.py
@@ -2323,7 +2323,10 @@ class Project(object):
2323 # Fail if the links are pointing to the wrong place 2323 # Fail if the links are pointing to the wrong place
2324 if src != dst: 2324 if src != dst:
2325 raise GitError('--force-sync not enabled; cannot overwrite a local ' 2325 raise GitError('--force-sync not enabled; cannot overwrite a local '
2326 'work tree') 2326 'work tree. If you\'re comfortable with the '
2327 'possibility of losing the work tree\'s git metadata,'
2328 ' use `repo sync --force-sync {0}` to '
2329 'proceed.'.format(self.relpath))
2327 2330
2328 def _ReferenceGitDir(self, gitdir, dotgit, share_refs, copy_all): 2331 def _ReferenceGitDir(self, gitdir, dotgit, share_refs, copy_all):
2329 """Update |dotgit| to reference |gitdir|, using symlinks where possible. 2332 """Update |dotgit| to reference |gitdir|, using symlinks where possible.