init: allow relative path on --reference argument

Change-Id: I41d6be6bc035fdddb5a27c072994439986d58d58
Signed-off-by: YOUNG HO CHA <ganadist@gmail.com>
This commit is contained in:
YOUNG HO CHA 2017-01-24 21:47:50 +09:00 committed by David Pursehouse
parent aa90021fbc
commit c79d3b8fd1

View File

@ -401,7 +401,7 @@ to update the working directory files.
git_require(MIN_GIT_VERSION, fail=True) git_require(MIN_GIT_VERSION, fail=True)
if opt.reference: if opt.reference:
opt.reference = os.path.expanduser(opt.reference) opt.reference = os.path.abspath(os.path.expanduser(opt.reference))
# Check this here, else manifest will be tagged "not new" and init won't be # Check this here, else manifest will be tagged "not new" and init won't be
# possible anymore without removing the .repo/manifests directory. # possible anymore without removing the .repo/manifests directory.