Skip to content

Commit 90680ca

Browse files
committed
magit-file-relative-name: fix tracked arg on tramp
Fixes #2206.
1 parent f3f5c21 commit 90680ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisp/magit-git.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ tracked file."
375375
(current-buffer))
376376
(setq file (or magit-buffer-file-name buffer-file-name))))
377377
(when (and file (or (not tracked)
378-
(magit-file-tracked-p file)))
378+
(magit-file-tracked-p (file-relative-name file))))
379379
(--when-let (magit-toplevel file)
380380
(file-relative-name file it))))
381381

0 commit comments

Comments
 (0)