mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-06-19 12:34:17 +00:00
Support relative paths in --reference
Put the correctly-expanded relative paths in objects/info/alternates. From gitrepository-layout(5), this path should be "relative to the object database, not to the repository". Change-Id: I7b2027ae23cf7d367b80f5a187603c4cbacdb2de
This commit is contained in:
@ -401,7 +401,7 @@ to update the working directory files.
|
||||
git_require(MIN_GIT_VERSION, fail=True)
|
||||
|
||||
if opt.reference:
|
||||
opt.reference = os.path.abspath(os.path.expanduser(opt.reference))
|
||||
opt.reference = os.path.expanduser(opt.reference)
|
||||
|
||||
# Check this here, else manifest will be tagged "not new" and init won't be
|
||||
# possible anymore without removing the .repo/manifests directory.
|
||||
|
Reference in New Issue
Block a user