Make discarding work again.

* magit.el (magit-discard-item): Don't escape twice.
This commit is contained in:
Marius Vollmer 2008-10-10 15:49:32 +03:00
parent f2e8155904
commit 0264295302

View file

@ -1986,8 +1986,7 @@ Prefix arg means justify as well."
(file (magit-diff-item-file item)))
(cond ((eq kind 'deleted)
(when (yes-or-no-p (format "Resurrect %s? " file))
(magit-shell "git reset -q -- %s"
(magit-escape-for-shell file))
(magit-shell "git reset -q -- %s" file)
(magit-run "git" "checkout" "--" file)))
((eq kind 'new)
(if (yes-or-no-p (format "Delete %s? " file))