Merge remote branch 'refs/remotes/lindi/issue-20'

This commit is contained in:
Phil Jackson 2010-10-27 10:53:31 +01:00
commit bdccbb7c74

View file

@ -1665,7 +1665,10 @@ FUNC should leave point at the end of the modified region"
(with-current-buffer input
(setq default-directory dir)
(setq magit-process
(apply 'magit-start-process cmd buf cmd args))
;; Don't use a pty, because it would set icrnl
;; which would modify the input (issue #20).
(let ((process-connection-type nil))
(apply 'magit-start-process cmd buf cmd args)))
(set-process-filter magit-process 'magit-process-filter)
(process-send-region magit-process
(point-min) (point-max))