summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-10-28 06:49:07 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-10-28 06:49:07 +0000
commite02c17c9eadb7cf591853f97f8780861379ea05f (patch)
tree2a0f2d51cf12d12153ef98864bc1028e106d9d37 /project.py
parent6e310790334b2cd7f7ba72cf3dbd3585176ccbdf (diff)
parentec287902e6517f0f7d11738f411d111c1ed06df1 (diff)
downloadgit-repo-e02c17c9eadb7cf591853f97f8780861379ea05f.tar.gz
Merge "_CheckDirReference: log actual error before suggesting --force-sync"
Diffstat (limited to 'project.py')
-rw-r--r--project.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/project.py b/project.py
index 29638ef7..bbb052a3 100644
--- a/project.py
+++ b/project.py
@@ -2400,6 +2400,7 @@ class Project(object):
2400 src = os.path.realpath(os.path.join(srcdir, name)) 2400 src = os.path.realpath(os.path.join(srcdir, name))
2401 # Fail if the links are pointing to the wrong place 2401 # Fail if the links are pointing to the wrong place
2402 if src != dst: 2402 if src != dst:
2403 _error('%s is different in %s vs %s', name, destdir, srcdir)
2403 raise GitError('--force-sync not enabled; cannot overwrite a local ' 2404 raise GitError('--force-sync not enabled; cannot overwrite a local '
2404 'work tree. If you\'re comfortable with the ' 2405 'work tree. If you\'re comfortable with the '
2405 'possibility of losing the work tree\'s git metadata,' 2406 'possibility of losing the work tree\'s git metadata,'