From: Alexandre Julliard Date: Sun, 28 Oct 2007 10:05:45 +0000 (+0100) Subject: git.el: Fix typo in git-update-saved-file error handling. X-Git-Tag: v1.5.4-rc0~315 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6df023884b87ef140829d78b67fab90a7f9b1211;p=git.git git.el: Fix typo in git-update-saved-file error handling. Spotted by Matthieu Lemerre. Signed-off-by: Alexandre Julliard Signed-off-by: Junio C Hamano --- diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el index 8cfbdd7be..0e5091c1b 100644 --- a/contrib/emacs/git.el +++ b/contrib/emacs/git.el @@ -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