Explorar el Código

GITC: Expand relative remote URLs.

The GITC filesystem does not understand relative URLs for remotes,
so now if a remote uses a relative URL, it will be be expanded to
be relative to the manifest URL.

Change-Id: Ie1210758560aeb1934da3f71496aaf19c2728214
Simran Basi hace 10 años
padre
commit
f7a51898d3
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      subcmds/gitc_init.py

+ 4 - 2
subcmds/gitc_init.py

@@ -66,8 +66,10 @@ use for this GITC client.
     if not os.path.exists(self.client_dir):
       os.mkdir(self.client_dir)
     super(GitcInit, self).Execute(opt, args)
-    # Make the destination manifest file a symlink to repo's so both repo and
-    # GITC refer to the same manifest.
+
+    for name, remote in self.manifest.remotes.iteritems():
+      remote.fetchUrl = remote.resolvedFetchUrl
+
     if opt.manifest_file:
       if not os.path.exists(opt.manifest_file):
         print('fatal: Specified manifest file %s does not exist.' %