Make sure that magit-run-with-input runs in the right directory.

* magit.el (magit-run*): Set default-directory of the input buffer.
This commit is contained in:
Marius Vollmer 2008-10-16 01:01:22 +03:00
parent 860749a817
commit 15572962a0

View file

@ -759,6 +759,7 @@ Many Magit faces inherit from this one by default."
(setq successp t))
(input
(with-current-buffer input
(setq default-directory dir)
(setq successp
(equal (apply 'call-process-region (point-min) (point-max)
cmd nil buf nil args) 0)))