We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e3abd4 commit 076a10cCopy full SHA for 076a10c
contrib/emacs/vc-git.el
@@ -54,7 +54,7 @@
54
(let* ((dir (file-name-directory file))
55
(name (file-relative-name file dir)))
56
(when dir (cd dir))
57
- (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)))
58
(let ((str (buffer-string)))
59
(and (> (length str) (length name))
60
(string= (substring str 0 (1+ (length name))) (concat name "\0"))))))))
0 commit comments