mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-01-06 16:14:25 +00:00
Merge "Include project path in --force-sync error message"
This commit is contained in:
commit
c5f15bf7c0
@ -2320,7 +2320,10 @@ class Project(object):
|
|||||||
# Fail if the links are pointing to the wrong place
|
# Fail if the links are pointing to the wrong place
|
||||||
if src != dst:
|
if src != dst:
|
||||||
raise GitError('--force-sync not enabled; cannot overwrite a local '
|
raise GitError('--force-sync not enabled; cannot overwrite a local '
|
||||||
'work tree')
|
'work tree. If you\'re comfortable with the '
|
||||||
|
'possibility of losing the work tree\'s git metadata,'
|
||||||
|
' use `repo sync --force-sync {0}` to '
|
||||||
|
'proceed.'.format(self.relpath))
|
||||||
|
|
||||||
def _ReferenceGitDir(self, gitdir, dotgit, share_refs, copy_all):
|
def _ReferenceGitDir(self, gitdir, dotgit, share_refs, copy_all):
|
||||||
"""Update |dotgit| to reference |gitdir|, using symlinks where possible.
|
"""Update |dotgit| to reference |gitdir|, using symlinks where possible.
|
||||||
|
Loading…
Reference in New Issue
Block a user