Skip to content

Commit 1e65249

Browse files
committed
git-vc-program/ignore errors
1 parent 98d5894 commit 1e65249

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/tools/clang-format/clang-format.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ supported vc."
233233
(string-width (expand-file-name base-dir))
234234
nil)))
235235
(let ((status (call-process
236-
"git"
236+
vc-git-program
237237
nil
238238
`(:file, tmpfile-vc-head)
239239
nil
@@ -323,7 +323,7 @@ specific locations for reformatting (i.e diff locations)."
323323
(if incomplete-format
324324
(message "(clang-format: incomplete (syntax errors)%s)" stderr)
325325
(message "(clang-format: success%s)" stderr))))
326-
(delete-file temp-file)
326+
(ignore-errors (delete-file temp-file))
327327
(when (buffer-name temp-buffer) (kill-buffer temp-buffer)))))
328328

329329

@@ -360,7 +360,7 @@ file. If no ASSUME-FILE-NAME is given uses the function
360360
style
361361
assume-file-name
362362
diff-lines))))
363-
(progn
363+
(ignore-errors
364364
;; Cleanup temporary files we created.
365365
(when tmpfile-vc-head (delete-file tmpfile-vc-head))
366366
(when tmpfile-curbuf (delete-file tmpfile-curbuf))))))

0 commit comments

Comments
 (0)