diff options
| author | Jason R. Coombs <jaraco@google.com> | 2023-09-29 12:42:22 -0400 |
|---|---|---|
| committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-05 14:29:29 +0000 |
| commit | 47944bbe2ea69009c0da78573f6536ad2c77f026 (patch) | |
| tree | 34bab3a4688b37502fc8fde3e44d22c2921d074d | |
| parent | 83c66ec661e39e47795086a5d26d0f3782ac1d49 (diff) | |
| download | git-repo-47944bbe2ea69009c0da78573f6536ad2c77f026.tar.gz | |
project: Invoke realpath on dotgit for symmetry with gitdir to ensure a short relpath.
Bug: 302680231
Change-Id: Icd01dd2ce62d737a4acb114e729189cd31f6bde9
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/388234
Tested-by: Jason R. Coombs <jaraco@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Commit-Queue: Jason R. Coombs <jaraco@google.com>
| -rw-r--r-- | project.py | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -3394,7 +3394,8 @@ class Project(object): | |||
| 3394 | # Now that the dir should be empty, clear it out, and symlink it over. | 3394 | # Now that the dir should be empty, clear it out, and symlink it over. |
| 3395 | platform_utils.rmdir(dotgit) | 3395 | platform_utils.rmdir(dotgit) |
| 3396 | platform_utils.symlink( | 3396 | platform_utils.symlink( |
| 3397 | os.path.relpath(gitdir, os.path.dirname(dotgit)), dotgit | 3397 | os.path.relpath(gitdir, os.path.dirname(os.path.realpath(dotgit))), |
| 3398 | dotgit, | ||
| 3398 | ) | 3399 | ) |
| 3399 | 3400 | ||
| 3400 | def _get_symlink_error_message(self): | 3401 | def _get_symlink_error_message(self): |
