From b424f87a276e509dcaaee6beb10ca00c12bb7d29 Mon Sep 17 00:00:00 2001 From: Andreas Gutsche Date: Thu, 6 Jan 2011 15:21:09 +0100 Subject: Added the bugfix code as a utility function to be reused wherever this specific subprocess bug occurs. --- git/diff.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'git/diff.py') diff --git a/git/diff.py b/git/diff.py index 48253c42..c2597bd9 100644 --- a/git/diff.py +++ b/git/diff.py @@ -10,6 +10,8 @@ from objects.util import mode_str_to_int from exc import GitCommandError from gitdb.util import hex_to_bin + +from util import sleep_on_gui_present_osx_crashfix __all__ = ('Diffable', 'DiffIndex', 'Diff') @@ -99,6 +101,7 @@ class Diffable(object): diff_method = Diff._index_from_patch_format index = diff_method(self.repo, proc.stdout) + sleep_on_gui_present_osx_crashfix() status = proc.wait() return index -- cgit v1.2.1