From 3d2321b317b583815a59302cb3c587de22dd7c81 Mon Sep 17 00:00:00 2001 From: Pavel Holejsovsky Date: Fri, 4 Dec 2009 16:40:51 +0100 Subject: [PATCH] Make async git invocation work on cygwin. Forces emacs to use pipes for communication with git subprocess. Although default PTY method should work too, there is probably something broken in cygwin causing that resulting process never receives any input and hangs forever. In any case, setting communication to 'pipe' is recommended by start-process docs anyway for background processes, as it is usually faster and more efficient. --- magit.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/magit.el b/magit.el index 79329aab..cfc3ea96 100644 --- a/magit.el +++ b/magit.el @@ -1031,7 +1031,8 @@ Many Magit faces inherit from this one by default." "\n") (cond (nowait (setq magit-process - (apply 'start-file-process cmd buf cmd args)) + (let ((process-connection-type nil)) + (apply 'start-file-process cmd buf cmd args))) (set-process-sentinel magit-process 'magit-process-sentinel) (set-process-filter magit-process 'magit-process-filter) (when input