diff options
Diffstat (limited to 'lisp/magit-git.el')
| -rw-r--r-- | lisp/magit-git.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index c09bb7f..f3d9341 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -1126,7 +1126,8 @@ a bare repository." ;;;; File Lists (defun magit-list-files (&rest args) - (apply #'magit-git-items "ls-files" "-z" "--full-name" args)) + (magit-with-toplevel + (apply #'magit-git-items "ls-files" "-z" args))) (defun magit-tracked-files (&rest args) (magit-list-files "--cached" args)) |
