summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2015-07-31 18:01:32 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-07-31 18:01:32 +0000
commit163fdbf2fd6ac8bb1f1e41fb74e68261badce32d (patch)
treef40f31fd8e72f30e66c471a29b6af1cb86610819 /project.py
parent555be547903a3077de8fa4e0d3dfd3d9202ddc10 (diff)
parent2a3e15217ab986abe457808a4f2e35504ded535a (diff)
downloadgit-repo-163fdbf2fd6ac8bb1f1e41fb74e68261badce32d.tar.gz
Merge "Fix _ReferenceGitDir symlinking"v1.12.26
Diffstat (limited to 'project.py')
-rw-r--r--project.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/project.py b/project.py
index 868425ce..9cb7542e 100644
--- a/project.py
+++ b/project.py
@@ -2347,10 +2347,11 @@ class Project(object):
2347 if copy_all: 2347 if copy_all:
2348 to_copy = os.listdir(gitdir) 2348 to_copy = os.listdir(gitdir)
2349 2349
2350 dotgit = os.path.realpath(dotgit)
2350 for name in set(to_copy).union(to_symlink): 2351 for name in set(to_copy).union(to_symlink):
2351 try: 2352 try:
2352 src = os.path.realpath(os.path.join(gitdir, name)) 2353 src = os.path.realpath(os.path.join(gitdir, name))
2353 dst = os.path.realpath(os.path.join(dotgit, name)) 2354 dst = os.path.join(dotgit, name)
2354 2355
2355 if os.path.lexists(dst): 2356 if os.path.lexists(dst):
2356 continue 2357 continue