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.
This commit is contained in:
Pavel Holejsovsky 2009-12-04 16:40:51 +01:00
parent db53f15cb5
commit 3d2321b317

View file

@ -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