Merge branch 'ls/p4-retry-thrice'
A recent updates to "git p4" was not usable for older p4 but it could be made to work with minimum changes. Do so. * ls/p4-retry-thrice: git-p4: do not pass '-r 0' to p4 commands
This commit is contained in:
@ -83,7 +83,9 @@ def p4_build_cmd(cmd):
|
||||
if retries is None:
|
||||
# Perform 3 retries by default
|
||||
retries = 3
|
||||
real_cmd += ["-r", str(retries)]
|
||||
if retries > 0:
|
||||
# Provide a way to not pass this option by setting git-p4.retries to 0
|
||||
real_cmd += ["-r", str(retries)]
|
||||
|
||||
if isinstance(cmd,basestring):
|
||||
real_cmd = ' '.join(real_cmd) + ' ' + cmd
|
||||
|
||||
Reference in New Issue
Block a user