diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-01-18 15:12:12 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-18 15:12:12 -0800 |
commit | 74f7427f8a7a6f8ac87e9f1bb1b140cd034f428d (patch) | |
tree | a13bab342f4d0161f57d2d0a46456d264a962b77 /git-p4.py | |
parent | 3ccd681c2ab11522591be8a7a3eddb1a85a43ab0 (diff) | |
parent | bc233524c96518c04650d297ad81a9c948fc2e41 (diff) | |
download | git-74f7427f8a7a6f8ac87e9f1bb1b140cd034f428d.tar.gz |
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
Diffstat (limited to 'git-p4.py')
-rwxr-xr-x | git-p4.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |