diff options
author | Mike Frysinger <vapier@google.com> | 2021-12-20 21:17:43 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2022-01-13 18:27:28 +0000 |
commit | 152032cca2a77f36e5a0c6943b66fd630c79b0e7 (patch) | |
tree | 6c61d1177c11ff3697e288a5cb68060892158c44 /subcmds/branches.py | |
parent | a3ac81627885f78b9391ff291c4a5bc617494045 (diff) | |
download | git-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 'subcmds/branches.py')
0 files changed, 0 insertions, 0 deletions