From c79d3b8fd17352cacb975a74f94c878b7d1f5897 Mon Sep 17 00:00:00 2001 From: YOUNG HO CHA Date: Tue, 24 Jan 2017 21:47:50 +0900 Subject: [PATCH] init: allow relative path on --reference argument Change-Id: I41d6be6bc035fdddb5a27c072994439986d58d58 Signed-off-by: YOUNG HO CHA --- subcmds/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. 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.