From 8ce5041596ef486510245946b7c6c68ec59add29 Mon Sep 17 00:00:00 2001 From: Simran Basi Date: Fri, 28 Aug 2015 14:25:44 -0700 Subject: 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 --- gitc_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gitc_utils.py') 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 import git_command import git_config +import wrapper -# TODO (sbasi) - Remove this constant and fetch manifest dir from /gitc/.config -GITC_MANIFEST_DIR = '/usr/local/google/gitc/' GITC_FS_ROOT_DIR = '/gitc/manifest-rw/' NUM_BATCH_RETRIEVE_REVISIONID = 300 +def get_gitc_manifest_dir(): + return wrapper.Wrapper().get_gitc_manifest_dir() + def parse_clientdir(gitc_fs_path): """Parse a path in the GITC FS and return its client name. -- cgit v1.2.3-54-g00ecf