(vc-default-checkin-patch): Try to be compatible with BSD 'patch'

* lisp/vc/vc.el (vc-default-checkin-patch):
Try to be compatible with BSD 'patch' (bug#66211).
This commit is contained in:
Dmitry Gutov 2023-10-14 20:10:08 +03:00
parent 717d0335d7
commit c0ffa8958e

View file

@ -1738,7 +1738,8 @@ Runs the normal hooks `vc-before-checkin-hook' and `vc-checkin-hook'."
nil
"-p1"
"-r" null-device
"--no-backup-if-mismatch"
"--posix"
"--remove-empty-files"
"-i" "-"))
(user-error "Patch failed: %s" (buffer-string))))
(vc-call-backend backend 'checkin files comment))