branch: externals/vc-got
commit ad36649b9f3ca7c730976bc4645986f86e71ec63
Author: Omar Polo <[email protected]>
Commit: Omar Polo <[email protected]>

    due piccoli errori di battitura corretti
    
    * una 'e' accentata
    * una maiuscola mancante ad inizio frase
---
 vc-got.el | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/vc-got.el b/vc-got.el
index aaecfe6..86e3a29 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -547,12 +547,13 @@ FILES is nil, consider all the files in DIR."
 (defun vc-got-checkin (files comment &optional _rev)
   "Commit FILES with COMMENT as commit message."
   (with-temp-buffer
-    (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)))
+    (unless (zerop (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))
+      (error (buffer-string)))))
 
 (defun vc-got-find-revision (file rev buffer)
   "Fill BUFFER with the content of FILE in the given revision REV."

Reply via email to