branch: elpa/magit
commit 3f5abf0424be4a62347409fb37674763ffca4ce5
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit--revert-blob-buffer: Use magit-file-relative-name
---
 lisp/magit-files.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/magit-files.el b/lisp/magit-files.el
index 83ad75fb425..1e1792dd96a 100644
--- a/lisp/magit-files.el
+++ b/lisp/magit-files.el
@@ -169,8 +169,7 @@ asking.  A non-nil value for REVERT is ignored if REV is 
\"{worktree}\"."
                                      "index"
                                    (concat "revision " 
magit-buffer-revision)))))
     (let* ((inhibit-read-only t)
-           (default-directory (magit-toplevel))
-           (file (file-relative-name magit-buffer-file-name))
+           (file (magit-file-relative-name))
            (coding-system-for-read (or coding-system-for-read 'undecided)))
       (erase-buffer)
       (magit-git-insert "cat-file" "-p"

Reply via email to