summaryrefslogtreecommitdiffstats
path: root/gitc_utils.py
diff options
context:
space:
mode:
authorSimran Basi <sbasi@google.com>2015-08-28 14:25:44 -0700
committerDan Willemsen <dwillemsen@google.com>2015-08-31 21:39:17 +0000
commit8ce5041596ef486510245946b7c6c68ec59add29 (patch)
tree77ba4fc3346af1f6a54d4018eae12d719671b532 /gitc_utils.py
parentf7a51898d3c989321c29f4ebaf7c3e9d106bc509 (diff)
downloadgit-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.py6
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
21import git_command 21import git_command
22import git_config 22import git_config
23import wrapper
23 24
24 25
25# TODO (sbasi) - Remove this constant and fetch manifest dir from /gitc/.config
26GITC_MANIFEST_DIR = '/usr/local/google/gitc/'
27GITC_FS_ROOT_DIR = '/gitc/manifest-rw/' 26GITC_FS_ROOT_DIR = '/gitc/manifest-rw/'
28NUM_BATCH_RETRIEVE_REVISIONID = 300 27NUM_BATCH_RETRIEVE_REVISIONID = 300
29 28
29def get_gitc_manifest_dir():
30 return wrapper.Wrapper().get_gitc_manifest_dir()
31
30def parse_clientdir(gitc_fs_path): 32def 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