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
This commit is contained in:
Simran Basi 2015-08-27 11:44:42 -07:00 committed by Dan Willemsen
parent b9a1b73425
commit f7a51898d3

View File

@ -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.' %