summaryrefslogtreecommitdiffstats
path: root/git_command.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-12-20 21:17:43 -0500
committerMike Frysinger <vapier@google.com>2022-01-13 18:27:28 +0000
commit152032cca2a77f36e5a0c6943b66fd630c79b0e7 (patch)
tree6c61d1177c11ff3697e288a5cb68060892158c44 /git_command.py
parenta3ac81627885f78b9391ff291c4a5bc617494045 (diff)
downloadgit-repo-152032cca2a77f36e5a0c6943b66fd630c79b0e7.tar.gz
project: move --reference handling to project-objects
When using --reference, the path is written to objects/info/alternates. The path is accessed inconsistently -- sometimes through projects/ (via self.gitdir) and sometimes through project-objects/ (via self.objdir). This works because projects/.../objects is a symlink to the objects dir under project-objects/. Change all accesses to go through self.objdir. This will allow us to stop symlinking projects/.../objects without the reference dir logic breaking. The projects/ path is going to use its alternates file for its own needs. Bug: https://crbug.com/gerrit/15553 Change-Id: I6b452ad1aaffec74ecb7ac1bb9baa3a3a52e076c Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/328099 Tested-by: Mike Frysinger <vapier@google.com> Reviewed-by: Jack Neus <jackneus@google.com>
Diffstat (limited to 'git_command.py')
0 files changed, 0 insertions, 0 deletions