summaryrefslogtreecommitdiffstats
path: root/subcmds/gitc_init.py
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2015-09-09 21:44:11 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-09-09 21:44:11 +0000
commit5cc384034d144c339d2e5822c36c5ca4529ac487 (patch)
treee2a5cb35a8ea85984c7e4f92bac9fffd4d1e617c /subcmds/gitc_init.py
parentc32ba1961e3451101ce94a26f83cf56681ff6414 (diff)
parent037552333182497e9e38bff984de44df0f93e54b (diff)
downloadgit-repo-5cc384034d144c339d2e5822c36c5ca4529ac487.tar.gz
Merge "Revert "GITC: Always update the gitc manifest from the repo manifest""v1.12.30.1
Diffstat (limited to 'subcmds/gitc_init.py')
-rw-r--r--subcmds/gitc_init.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/subcmds/gitc_init.py b/subcmds/gitc_init.py
index c957a9dc..e99affa5 100644
--- a/subcmds/gitc_init.py
+++ b/subcmds/gitc_init.py
@@ -68,13 +68,15 @@ use for this GITC client.
68 os.mkdir(self.client_dir) 68 os.mkdir(self.client_dir)
69 super(GitcInit, self).Execute(opt, args) 69 super(GitcInit, self).Execute(opt, args)
70 70
71 manifest_file = self.manifest.manifestFile 71 for name, remote in self.manifest.remotes.iteritems():
72 remote.fetchUrl = remote.resolvedFetchUrl
73
72 if opt.manifest_file: 74 if opt.manifest_file:
73 if not os.path.exists(opt.manifest_file): 75 if not os.path.exists(opt.manifest_file):
74 print('fatal: Specified manifest file %s does not exist.' % 76 print('fatal: Specified manifest file %s does not exist.' %
75 opt.manifest_file) 77 opt.manifest_file)
76 sys.exit(1) 78 sys.exit(1)
77 manifest_file = opt.manifest_file 79 self.manifest.Override(opt.manifest_file)
78 gitc_utils.generate_gitc_manifest(self.repodir, opt.gitc_client, None, manifest_file) 80 gitc_utils.generate_gitc_manifest(self.client_dir, self.manifest)
79 print('Please run `cd %s` to view your GITC client.' % 81 print('Please run `cd %s` to view your GITC client.' %
80 os.path.join(gitc_utils.GITC_FS_ROOT_DIR, opt.gitc_client)) 82 os.path.join(gitc_utils.GITC_FS_ROOT_DIR, opt.gitc_client))