Преглед изворни кода

Merge "init: allow relative path on --reference argument"

David Pursehouse пре 8 година
родитељ
комит
a24671f661
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      subcmds/init.py

+ 1 - 1
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.