diff options
author | David Pursehouse <dpursehouse@collab.net> | 2017-05-29 04:54:12 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-05-29 04:54:12 +0000 |
commit | a24671f661f1fae6678e2bcdd3c9fbae0ad7100f (patch) | |
tree | 2ba72d9123bf35e8912edc21fb13273c0cd4ba93 /subcmds/init.py | |
parent | e0684addeeb920ddf83168d5fbbbe50cb9287abd (diff) | |
parent | c79d3b8fd17352cacb975a74f94c878b7d1f5897 (diff) | |
download | git-repo-a24671f661f1fae6678e2bcdd3c9fbae0ad7100f.tar.gz |
Merge "init: allow relative path on --reference argument"
Diffstat (limited to 'subcmds/init.py')
-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 b260ec0f..65dfd1fd 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.expanduser(opt.reference) | 404 | opt.reference = os.path.abspath(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. |