Commit Diff


commit - 3ec0e0cae3d6d38ca12cedb0cba4f63fe6fff8e4
commit + ba51d2414feec77347ec3c69eeab583a88988122
blob - 004b64be25f8c3d5309cd9edbdd94a99184c3fb2
blob + 9195be6cd8fba4d93de5863aff596a7d4f871f61
--- vc-got.el
+++ vc-got.el
@@ -693,9 +693,10 @@ LIMIT limits the number of commits, optionally startin
 START-REVISION."
   (vc-setup-buffer buffer)
   (with-current-buffer buffer
-    (let ((inhibit-read-only t))
+    (let ((worktree-path (vc-got-root default-directory))
+          (inhibit-read-only t))
       (cl-loop for file in files
-               do (vc-got--log (file-relative-name file)
+               do (vc-got--log (file-relative-name file worktree-path)
                                limit
                                start-revision)))))