summaryrefslogtreecommitdiff
path: root/contrib/emacs
diff options
context:
space:
mode:
authorAlexandre Julliard <julliard@winehq.org>2007-10-28 10:05:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-10-28 21:08:28 (GMT)
commit6df023884b87ef140829d78b67fab90a7f9b1211 (patch)
tree4a18ed9ece959c9e0a6cba6acee83fcdd1dd23cd /contrib/emacs
parent3697c5f37a8b7b15d0a3be51d05147654a951115 (diff)
downloadgit-6df023884b87ef140829d78b67fab90a7f9b1211.zip
git-6df023884b87ef140829d78b67fab90a7f9b1211.tar.gz
git-6df023884b87ef140829d78b67fab90a7f9b1211.tar.bz2
git.el: Fix typo in git-update-saved-file error handling.
Spotted by Matthieu Lemerre. Signed-off-by: Alexandre Julliard <julliard@winehq.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/emacs')
-rw-r--r--contrib/emacs/git.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index 8cfbdd7..0e5091c 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