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 /gitc_utils.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 'gitc_utils.py')
| -rw-r--r-- | gitc_utils.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gitc_utils.py b/gitc_utils.py index 4d8d5366..d082c8d7 100644 --- a/gitc_utils.py +++ b/gitc_utils.py | |||
| @@ -20,13 +20,15 @@ import time | |||
| 20 | 20 | ||
| 21 | import git_command | 21 | import git_command |
| 22 | import git_config | 22 | import git_config |
| 23 | import wrapper | ||
| 23 | 24 | ||
| 24 | 25 | ||
| 25 | # TODO (sbasi) - Remove this constant and fetch manifest dir from /gitc/.config | ||
| 26 | GITC_MANIFEST_DIR = '/usr/local/google/gitc/' | ||
| 27 | GITC_FS_ROOT_DIR = '/gitc/manifest-rw/' | 26 | GITC_FS_ROOT_DIR = '/gitc/manifest-rw/' |
| 28 | NUM_BATCH_RETRIEVE_REVISIONID = 300 | 27 | NUM_BATCH_RETRIEVE_REVISIONID = 300 |
| 29 | 28 | ||
| 29 | def get_gitc_manifest_dir(): | ||
| 30 | return wrapper.Wrapper().get_gitc_manifest_dir() | ||
| 31 | |||
| 30 | def parse_clientdir(gitc_fs_path): | 32 | def parse_clientdir(gitc_fs_path): |
| 31 | """Parse a path in the GITC FS and return its client name. | 33 | """Parse a path in the GITC FS and return its client name. |
| 32 | 34 | ||
