summaryrefslogtreecommitdiffstats
path: root/gitc_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitc_utils.py')
-rw-r--r--gitc_utils.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/gitc_utils.py b/gitc_utils.py
index a388dc27..0d4a5c38 100644
--- a/gitc_utils.py
+++ b/gitc_utils.py
@@ -24,7 +24,9 @@ import git_command
24import git_config 24import git_config
25import wrapper 25import wrapper
26 26
27NUM_BATCH_RETRIEVE_REVISIONID = 300 27from error import ManifestParseError
28
29NUM_BATCH_RETRIEVE_REVISIONID = 32
28 30
29def get_gitc_manifest_dir(): 31def get_gitc_manifest_dir():
30 return wrapper.Wrapper().get_gitc_manifest_dir() 32 return wrapper.Wrapper().get_gitc_manifest_dir()
@@ -54,7 +56,11 @@ def _set_project_revisions(projects):
54 if gitcmd.Wait(): 56 if gitcmd.Wait():
55 print('FATAL: Failed to retrieve revisionExpr for %s' % proj) 57 print('FATAL: Failed to retrieve revisionExpr for %s' % proj)
56 sys.exit(1) 58 sys.exit(1)
57 proj.revisionExpr = gitcmd.stdout.split('\t')[0] 59 revisionExpr = gitcmd.stdout.split('\t')[0]
60 if not revisionExpr:
61 raise(ManifestParseError('Invalid SHA-1 revision project %s (%s)' %
62 (proj.remote.url, proj.revisionExpr)))
63 proj.revisionExpr = revisionExpr
58 64
59def _manifest_groups(manifest): 65def _manifest_groups(manifest):
60 """Returns the manifest group string that should be synced 66 """Returns the manifest group string that should be synced