diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-12-17 00:27:50 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-17 00:27:50 +0100 |
commit | 2a72b69407c5769db1519f82e7a10d98a3ab0352 (patch) | |
tree | 4fc7cc2a603e82d85ed626c1a29d9f4f7c47c04e /git-p4.py | |
parent | Merge branch 'ls/p4-empty-file-on-lfs' (diff) | |
parent | git-p4: add config to retry p4 commands; retry 3 times by default (diff) | |
download | git-2a72b69407c5769db1519f82e7a10d98a3ab0352.tar.xz git-2a72b69407c5769db1519f82e7a10d98a3ab0352.zip |
Merge branch 'ls/p4-retry-thrice'
* ls/p4-retry-thrice:
git-p4: add config to retry p4 commands; retry 3 times by default
Diffstat (limited to 'git-p4.py')
-rwxr-xr-x | git-p4.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -78,6 +78,11 @@ def p4_build_cmd(cmd): if len(client) > 0: real_cmd += ["-c", client] + retries = gitConfigInt("git-p4.retries") + if retries is None: + # Perform 3 retries by default + retries = 3 + real_cmd += ["-r", str(retries)] if isinstance(cmd,basestring): real_cmd = ' '.join(real_cmd) + ' ' + cmd |