[Tramp] Two more fix, make staging with magit on tramp dir possible

This commit is contained in:
Rémi Vanicat 2009-09-12 21:43:19 +02:00 committed by Marius Vollmer
parent 3b661f5db4
commit cea34e5f8c

View file

@ -1021,7 +1021,7 @@ Many Magit faces inherit from this one by default."
"\n") "\n")
(cond (nowait (cond (nowait
(setq magit-process (setq magit-process
(apply 'start-process cmd buf cmd args)) (apply 'start-file-process cmd buf cmd args))
(set-process-sentinel magit-process 'magit-process-sentinel) (set-process-sentinel magit-process 'magit-process-sentinel)
(set-process-filter magit-process 'magit-process-filter) (set-process-filter magit-process 'magit-process-filter)
(when input (when input
@ -1054,7 +1054,7 @@ Many Magit faces inherit from this one by default."
(magit-need-refresh magit-process-client-buffer)) (magit-need-refresh magit-process-client-buffer))
(t (t
(setq successp (setq successp
(equal (apply 'call-process cmd nil buf nil args) 0)) (equal (apply 'process-file cmd nil buf nil args) 0))
(magit-set-mode-line-process nil) (magit-set-mode-line-process nil)
(magit-need-refresh magit-process-client-buffer)))) (magit-need-refresh magit-process-client-buffer))))
(or successp (or successp