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:
parent
db53f15cb5
commit
3d2321b317
1 changed files with 2 additions and 1 deletions
3
magit.el
3
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
|
||||
|
|
Loading…
Reference in a new issue