@matheusbsbs / matheus-bagliano / commits / 6df023884b
Fork 0

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>

Alexandre Julliard committed Oct 28, 2007 at 11:05 UTC 6df023884b87ef140829d78b67fab90a7f9b1211
1 file changed +1 -1
contrib/emacs/git.el
+1 -1
@@ -1353,7 +1353,7 @@ Commands:
1353 "Update the corresponding git-status buffer when a file is saved.
1354 Meant to be used in `after-save-hook'."
1355 (let* ((file (expand-file-name buffer-file-name))
1356 - (dir (condition-case nil (git-get-top-dir (file-name-directory file))))
1356 + (dir (condition-case nil (git-get-top-dir (file-name-directory file)) (error nil)))
1357 (buffer (and dir (git-find-status-buffer dir))))
1358 (when buffer
1359 (with-current-buffer buffer