Browse Source

init: Remove string concat in no-op os.path.join

This also fixes a line length warning.

Change-Id: I9c1ab65f83a35581dd657a707c7bc3c69db2b1dc
Samuel Holland 8 năm trước cách đây
mục cha
commit
5f0e57d2ca
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      subcmds/init.py

+ 2 - 1
subcmds/init.py

@@ -175,7 +175,8 @@ to update the working directory files.
         if not mirrored_manifest_git.endswith(".git"):
           mirrored_manifest_git += ".git"
         if not os.path.exists(mirrored_manifest_git):
-          mirrored_manifest_git = os.path.join(opt.reference + '/.repo/manifests.git')
+          mirrored_manifest_git = os.path.join(opt.reference,
+                                               '.repo/manifests.git')
 
       m._InitGitDir(mirror_git=mirrored_manifest_git)