diff options
author | Simran Basi <sbasi@google.com> | 2015-08-28 14:25:44 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2015-08-31 21:39:17 +0000 |
commit | 8ce5041596ef486510245946b7c6c68ec59add29 (patch) | |
tree | 77ba4fc3346af1f6a54d4018eae12d719671b532 /subcmds/gitc_init.py | |
parent | f7a51898d3c989321c29f4ebaf7c3e9d106bc509 (diff) | |
download | git-repo-8ce5041596ef486510245946b7c6c68ec59add29.tar.gz |
GITC: Pull GITC Manifest Dir from the config.
Updates the repo launcher and gitc_utils to pull the manifest
directory location out of the gitc config file.
Change-Id: Id08381b8a7d61962093d5cddcb3ff6afbb13004b
Diffstat (limited to 'subcmds/gitc_init.py')
-rw-r--r-- | subcmds/gitc_init.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subcmds/gitc_init.py b/subcmds/gitc_init.py index 92b34f72..c0568caa 100644 --- a/subcmds/gitc_init.py +++ b/subcmds/gitc_init.py | |||
@@ -59,10 +59,10 @@ use for this GITC client. | |||
59 | if not opt.gitc_client: | 59 | if not opt.gitc_client: |
60 | print('fatal: gitc client (-c) is required', file=sys.stderr) | 60 | print('fatal: gitc client (-c) is required', file=sys.stderr) |
61 | sys.exit(1) | 61 | sys.exit(1) |
62 | self.client_dir = os.path.join(gitc_utils.GITC_MANIFEST_DIR, | 62 | self.client_dir = os.path.join(gitc_utils.get_gitc_manifest_dir(), |
63 | opt.gitc_client) | 63 | opt.gitc_client) |
64 | if not os.path.exists(gitc_utils.GITC_MANIFEST_DIR): | 64 | if not os.path.exists(gitc_utils.get_gitc_manifest_dir()): |
65 | os.makedirs(gitc_utils.GITC_MANIFEST_DIR) | 65 | os.makedirs(gitc_utils.get_gitc_manifest_dir()) |
66 | if not os.path.exists(self.client_dir): | 66 | if not os.path.exists(self.client_dir): |
67 | os.mkdir(self.client_dir) | 67 | os.mkdir(self.client_dir) |
68 | super(GitcInit, self).Execute(opt, args) | 68 | super(GitcInit, self).Execute(opt, args) |