Commit Diff


commit - 1ca0183c11f30079825dbc21fa58e34fed7062b0
commit + 30dcedecffad644f77c4de56ad8817cd6ab02c03
blob - 1c0b612407c8018c9c2563e2a2d211e43978c1a7
blob + 860a9a2ecc7d80fa2dde67cf54cf85d5b9de69e1
--- vc-got.el
+++ vc-got.el
@@ -371,7 +371,12 @@ DIR-OR-FILE."
 (defun vc-got-checkin (files comment &optional _rev)
   "Commit FILES with COMMENT as commit message."
   (with-temp-buffer
-    (apply #'vc-got--call "commit" "-m" comment files)))
+    (apply #'vc-got--call "commit" "-m"
+           ;; emacs add ``Summary:'' at the start of the commit
+           ;; message.  vc-git doesn't seem to treat this specially.
+           ;; Since it's annoying, remove it.
+           (string-remove-prefix "Summary: " comment)
+           files)))
 
 (defun vc-got-find-revision (file rev buffer)
   "Fill BUFFER with the content of FILE in the given revision REV."