summaryrefslogtreecommitdiff
path: root/lisp/vc/vc-git.el
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2021-09-03 03:34:18 +0300
committerDmitry Gutov <dgutov@yandex.ru>2021-09-03 03:34:18 +0300
commit0a18899f06949884b3078c13054233d635f36d6d (patch)
treec6fed691187e138d90f53ddd0c18e072ef135afb /lisp/vc/vc-git.el
parent926e69b20792630d0b6ac21c2a914703962722e4 (diff)
downloademacs-0a18899f06949884b3078c13054233d635f36d6d.tar.gz
emacs-0a18899f06949884b3078c13054233d635f36d6d.tar.bz2
emacs-0a18899f06949884b3078c13054233d635f36d6d.zip
Fix recently broken vc-delete-file with Git
* lisp/vc/vc-git.el (vc-git-delete-file): Treat FILE as string, not list (bug#50334).
Diffstat (limited to 'lisp/vc/vc-git.el')
-rw-r--r--lisp/vc/vc-git.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index a5431abb40c..037fbcbc48d 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1556,7 +1556,7 @@ This requires git 1.8.4 or later, for the \"-L\" option of \"git log\"."
(or (vc-git-symbolic-commit next-rev) next-rev)))
(defun vc-git-delete-file (file)
- (vc-git-command nil 0 (vc-git--literal-pathspecs file) "rm" "-f" "--"))
+ (vc-git-command nil 0 (vc-git--literal-pathspec file) "rm" "-f" "--"))
(defun vc-git-rename-file (old new)
(vc-git-command nil 0 (list old new) "mv" "-f" "--"))