Since commit c4b0ad21, `magit-read-file-from-rev' erroneously offered
completion for the files available in HEAD instead of in the supplied
revision.  Also, we were unable to select files in subfolders due to
the removal of the "-r"ecursive option to git-ls-tree(1).

Signed-off-by: Pieter Praet <[email protected]>
---
 magit.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/magit.el b/magit.el
index f100be1..5b993bd 100644
--- a/magit.el
+++ b/magit.el
@@ -1454,7 +1454,7 @@ (defvar magit-read-file-hist nil)
 
 (defun magit-read-file-from-rev (revision)
   (magit-completing-read (format "Retrieve file from %s: " revision)
-                         (magit-git-lines "ls-tree" "--name-only" "HEAD")
+                         (magit-git-lines "ls-tree" "-r" "--name-only" 
revision)
                          nil 'require-match
                          nil 'magit-read-file-hist
                          (when buffer-file-name
-- 
1.7.11.1

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to