summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3697c5f)
raw | patch | inline | side by side (parent: 3697c5f)
author | Alexandre Julliard <julliard@winehq.org> | |
Sun, 28 Oct 2007 10:05:45 +0000 (11:05 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 28 Oct 2007 21:08:28 +0000 (14:08 -0700) |
Spotted by Matthieu Lemerre.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/emacs/git.el | patch | blob | history |
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index 8cfbdd7be453f2a6a95028825b4a21184487f2fc..0e5091c1b7e2e7401e8c23edc16c3c4285b43578 100644 (file)
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
"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