From f7a51898d3c989321c29f4ebaf7c3e9d106bc509 Mon Sep 17 00:00:00 2001 From: Simran Basi Date: Thu, 27 Aug 2015 11:44:42 -0700 Subject: [PATCH] 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 --- subcmds/gitc_init.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subcmds/gitc_init.py b/subcmds/gitc_init.py index 6f5278b2..92b34f72 100644 --- a/subcmds/gitc_init.py +++ b/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.' %