diff options
author | Ville Skyttä <scop@xemacs.org> | 2006-08-16 23:12:26 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-16 19:18:27 -0700 |
commit | 076a10c7282a08f783a28c1b64d0e114a3fe3d39 (patch) | |
tree | 286bd4fd1fdb8b948e9ac232f76e78accf5c2c61 /contrib | |
parent | 8e3abd4c97b8e7e1128ad0cc44dcc267f478659a (diff) | |
download | git-076a10c7282a08f783a28c1b64d0e114a3fe3d39.tar.gz git-076a10c7282a08f783a28c1b64d0e114a3fe3d39.tar.xz |
Be nicer if git executable is not installed
This patch avoids problems if vc-git.el is installed and activated, but
the git executable is not available, for example
http://list-archive.xemacs.org/xemacs-beta/200608/msg00062.html
Signed-off-by: Ville Skyttä <scop@xemacs.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/emacs/vc-git.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/emacs/vc-git.el b/contrib/emacs/vc-git.el index 3f6ed699f..4a8f79092 100644 --- a/contrib/emacs/vc-git.el +++ b/contrib/emacs/vc-git.el @@ -54,7 +54,7 @@ (let* ((dir (file-name-directory file)) (name (file-relative-name file dir))) (when dir (cd dir)) - (and (eq 0 (call-process "git" nil '(t nil) nil "ls-files" "-c" "-z" "--" name)) + (and (ignore-errors (eq 0 (call-process "git" nil '(t nil) nil "ls-files" "-c" "-z" "--" name))) (let ((str (buffer-string))) (and (> (length str) (length name)) (string= (substring str 0 (1+ (length name))) (concat name "\0")))))))) |