h--call-git-in-dir: guard callback call in case of absent callback

This commit is contained in:
Félix Baylac-Jacqué 2022-06-24 19:03:34 +02:00
parent 3cb5c5e2d3
commit 5d1568fe85
No known key found for this signature in database
GPG Key ID: EFD315F31848DBA4
1 changed files with 2 additions and 1 deletions

3
h.el
View File

@ -124,7 +124,8 @@ Returns the git PROCESS object."
(progn
(if (window-valid-p git-window)
(delete-window git-window))
(funcall callback exit-code))))))
(if callback
(funcall callback exit-code)))))))
(progn
(set-buffer git-buffer)
(erase-buffer)