diff options
Diffstat (limited to 'turbo_hipster')
-rw-r--r-- | turbo_hipster/lib/models.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/turbo_hipster/lib/models.py b/turbo_hipster/lib/models.py index ad7ec86..1a2c836 100644 --- a/turbo_hipster/lib/models.py +++ b/turbo_hipster/lib/models.py @@ -320,6 +320,13 @@ class ShellTask(Task): tries += 1 return_code = utils.execute_to_log(cmd, self.git_prep_log, env=git_args, cwd=local_path) + if tries >= 2: + # Try upping the post buffer. See: + # http://stackoverflow.com/questions/6842687/ + # the-remote-end-hung-up-unexpectedly-while-git-cloning + utils.execute_to_log( + "git config --global http.postBuffer 1048576000", + self.git_prep_log, env=git_args, cwd=local_path) if tries >= 3: break if return_code != 0: |