Skip to contentSkip to conversation

git.el: Fix typo in git-update-saved-file error handling.

PATCH New Alexandre Julliard 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git.el: Fix typo in git-update-saved-file error handling.

Spotted by Matthieu Lemerre.

---
 contrib/emacs/git.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
contrib/emacs/git.el +1 -1
index 8cfbdd7..0e5091c 100644
@@ -1353,7 +1353,7 @@ Commands:
   "Update the corresponding git-status buffer when a file is saved.
 Meant to be used in `after-save-hook'."
   (let* ((file (expand-file-name buffer-file-name))
-         (dir (condition-case nil (git-get-top-dir (file-name-directory file))))
+         (dir (condition-case nil (git-get-top-dir (file-name-directory file)) (error nil)))
          (buffer (and dir (git-find-status-buffer dir))))
     (when buffer
       (with-current-buffer buffer
Signature · 5 lines
1.5.3.4.404.g5a866

-- 
Alexandre Julliard
[email protected]