Merge "init: allow relative path on --reference argument"
diff --git a/subcmds/init.py b/subcmds/init.py
index b260ec0..65dfd1f 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -401,7 +401,7 @@
git_require(MIN_GIT_VERSION, fail=True)
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
# possible anymore without removing the .repo/manifests directory.