* lisp/vc/vc-git.el (vc-git-find-revision): Pass --filters to
git-cat-file. Problem reported and fix suggested by Oscar
Fuentes <ofv@wanadoo.es>.
(cherry picked from commit
191109e25e51b986e1029b5a5010ced07507a73a)
(if (string= fn "")
(file-relative-name file (vc-git-root default-directory))
(substring fn 0 -1)))))
- (vc-git-command
- buffer 0
- nil
- "cat-file" "blob" (concat (if rev rev "HEAD") ":" fullname))))
+ (vc-git-command buffer 0 nil "cat-file" "--filters" "blob"
+ (concat (or rev "HEAD") ":" fullname))))
(defun vc-git-find-ignore-file (file)
"Return the git ignore file that controls FILE."