diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-22 10:57:29 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-22 10:57:29 -0600 |
commit | baa00093557d4e7e41d67ac8acfd4daccb154afd (patch) | |
tree | 0e33063af6c7b3d900ba3313efa3bfffb9dc505a /subcmds | |
parent | 685320b000c0683421a460d1c9a33ae9d73cc706 (diff) | |
download | git-repo-baa00093557d4e7e41d67ac8acfd4daccb154afd.tar.gz |
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
Diffstat (limited to 'subcmds')
-rw-r--r-- | subcmds/init.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index eeddca06..9466b9a2 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -401,7 +401,7 @@ to update the working directory files. | |||
401 | git_require(MIN_GIT_VERSION, fail=True) | 401 | git_require(MIN_GIT_VERSION, fail=True) |
402 | 402 | ||
403 | if opt.reference: | 403 | if opt.reference: |
404 | opt.reference = os.path.abspath(os.path.expanduser(opt.reference)) | 404 | opt.reference = os.path.expanduser(opt.reference) |
405 | 405 | ||
406 | # Check this here, else manifest will be tagged "not new" and init won't be | 406 | # Check this here, else manifest will be tagged "not new" and init won't be |
407 | # possible anymore without removing the .repo/manifests directory. | 407 | # possible anymore without removing the .repo/manifests directory. |