diff options
| author | Dan Willemsen <dwillemsen@google.com> | 2015-07-31 18:01:32 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-07-31 18:01:32 +0000 |
| commit | 163fdbf2fd6ac8bb1f1e41fb74e68261badce32d (patch) | |
| tree | f40f31fd8e72f30e66c471a29b6af1cb86610819 /project.py | |
| parent | 555be547903a3077de8fa4e0d3dfd3d9202ddc10 (diff) | |
| parent | 2a3e15217ab986abe457808a4f2e35504ded535a (diff) | |
| download | git-repo-163fdbf2fd6ac8bb1f1e41fb74e68261badce32d.tar.gz | |
Merge "Fix _ReferenceGitDir symlinking"v1.12.26
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -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 |
