Commit Diff


commit - f18d3e119d1fa4020afb3197d6795ee2329684a7
commit + 4571b1fd33cbe57979e5cfe154d6f966825cf481
blob - 6d8b4b1d8f60a4bc4a67483edfd7ac58a912b782
blob + 1c0b612407c8018c9c2563e2a2d211e43978c1a7
--- vc-got.el
+++ vc-got.el
@@ -414,9 +414,9 @@ DIR-OR-FILE."
 LIMIT limits the number of commits, optionally starting at START-REVISION."
   (with-current-buffer buffer
     ;; the *vc-diff* may be read only
-    (let ((inhibit-read-only))
+    (let ((inhibit-read-only t))
       (cl-loop for file in files
-               do (vc-got--log file limit start-revision)))))
+               do (vc-got--log (file-relative-name file) limit start-revision)))))
 
 ;; XXX: vc.el specify only pattern, but in reality this takes a buffer
 ;; and a pattern.