summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
authorAnthony King <anthonydking@slimroms.net>2015-06-03 17:21:56 +0100
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2015-06-04 00:33:33 +0000
commit7993f3cdda0c66d97aae5c4570921130023e6048 (patch)
tree80bf292fbb28bb219c684087a8a5512731748aeb /subcmds
parentb1d1fd778d5d3d3217023df8b428c5b7fa22a337 (diff)
downloadgit-repo-7993f3cdda0c66d97aae5c4570921130023e6048.tar.gz
init: don't call urllib.parse
it's actually urllib.parse.urlparse Change-Id: Ie3532e54625e887c8682d92b932ea21a629e8d60
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/init.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/init.py b/subcmds/init.py
index b73de71c..dbb6ddda 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -27,7 +27,7 @@ else:
27 import imp 27 import imp
28 import urlparse 28 import urlparse
29 urllib = imp.new_module('urllib') 29 urllib = imp.new_module('urllib')
30 urllib.parse = urlparse.urlparse 30 urllib.parse = urlparse
31 31
32from color import Coloring 32from color import Coloring
33from command import InteractiveCommand, MirrorSafeCommand 33from command import InteractiveCommand, MirrorSafeCommand
@@ -153,7 +153,7 @@ to update the working directory files.
153 # server where this git is located, so let's save that here. 153 # server where this git is located, so let's save that here.
154 mirrored_manifest_git = None 154 mirrored_manifest_git = None
155 if opt.reference: 155 if opt.reference:
156 manifest_git_path = urllib.parse(opt.manifest_url).path[1:] 156 manifest_git_path = urllib.parse.urlparse(opt.manifest_url).path[1:]
157 mirrored_manifest_git = os.path.join(opt.reference, manifest_git_path) 157 mirrored_manifest_git = os.path.join(opt.reference, manifest_git_path)
158 if not mirrored_manifest_git.endswith(".git"): 158 if not mirrored_manifest_git.endswith(".git"):
159 mirrored_manifest_git += ".git" 159 mirrored_manifest_git += ".git"