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