summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--project.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/project.py b/project.py
index 6e8bb032..cdb4ecfd 100644
--- a/project.py
+++ b/project.py
@@ -25,7 +25,7 @@ import sys
25import time 25import time
26 26
27from color import Coloring 27from color import Coloring
28from git_command import GitCommand 28from git_command import GitCommand, git_require
29from git_config import GitConfig, IsId, GetSchemeFromUrl, ID_RE 29from git_config import GitConfig, IsId, GetSchemeFromUrl, ID_RE
30from error import GitError, HookError, UploadError 30from error import GitError, HookError, UploadError
31from error import ManifestInvalidRevisionError 31from error import ManifestInvalidRevisionError
@@ -1987,6 +1987,9 @@ class Project(object):
1987 raise TypeError('%s() got an unexpected keyword argument %r' 1987 raise TypeError('%s() got an unexpected keyword argument %r'
1988 % (name, k)) 1988 % (name, k))
1989 if config is not None: 1989 if config is not None:
1990 if not git_require((1, 7, 2)):
1991 raise ValueError('cannot set config on command line for %s()'
1992 % name)
1990 for k, v in config.iteritems(): 1993 for k, v in config.iteritems():
1991 cmdv.append('-c') 1994 cmdv.append('-c')
1992 cmdv.append('%s=%s' % (k, v)) 1995 cmdv.append('%s=%s' % (k, v))