summaryrefslogtreecommitdiffstats
path: root/subcmds/init.py
diff options
context:
space:
mode:
authorYOUNG HO CHA <ganadist@gmail.com>2017-01-24 21:47:50 +0900
committerDavid Pursehouse <dpursehouse@collab.net>2017-05-28 00:33:25 +0000
commitc79d3b8fd17352cacb975a74f94c878b7d1f5897 (patch)
tree0cf2224fec644b276df3d1f8b9c6445a0ab74155 /subcmds/init.py
parentaa90021fbc3382fdac6171572c85ee07369c91e1 (diff)
downloadgit-repo-c79d3b8fd17352cacb975a74f94c878b7d1f5897.tar.gz
init: allow relative path on --reference argument
Change-Id: I41d6be6bc035fdddb5a27c072994439986d58d58 Signed-off-by: YOUNG HO CHA <ganadist@gmail.com>
Diffstat (limited to 'subcmds/init.py')
-rw-r--r--subcmds/init.py2
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.