mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
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:
parent
b9a1b73425
commit
f7a51898d3
@ -66,8 +66,10 @@ use for this GITC client.
|
|||||||
if not os.path.exists(self.client_dir):
|
if not os.path.exists(self.client_dir):
|
||||||
os.mkdir(self.client_dir)
|
os.mkdir(self.client_dir)
|
||||||
super(GitcInit, self).Execute(opt, args)
|
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 opt.manifest_file:
|
||||||
if not os.path.exists(opt.manifest_file):
|
if not os.path.exists(opt.manifest_file):
|
||||||
print('fatal: Specified manifest file %s does not exist.' %
|
print('fatal: Specified manifest file %s does not exist.' %
|
||||||
|
Loading…
Reference in New Issue
Block a user