diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2021-08-26 04:44:21 +0300 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2021-08-26 04:44:21 +0300 |
commit | 2b62b2a019b488110901aeff08957c7d903e1588 (patch) | |
tree | 86c9b519405b959b8c7d67934d7c0d888d31296d /lisp | |
parent | a8c803db8e39a44b48aad5c21db3bef68a9ff87d (diff) | |
download | emacs-2b62b2a019b488110901aeff08957c7d903e1588.tar.gz emacs-2b62b2a019b488110901aeff08957c7d903e1588.tar.bz2 emacs-2b62b2a019b488110901aeff08957c7d903e1588.zip |
Make sure to remove the remote specification before adding :(literal)
* lisp/vc/vc-git.el (vc-git--literal-pathspec):
Make sure to remove the remote specification from the file name
(bug#50175, bug#39452).
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/vc/vc-git.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 935dc8b9aee..779326be3fd 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -245,7 +245,7 @@ included in the completions." (defun vc-git--literal-pathspec (pathspec) "Prepend :(literal) path magic to PATHSPEC." ;; Good example of PATHSPEC that needs this: "test[56].xx". - (and pathspec (concat ":(literal)" pathspec))) + (and pathspec (concat ":(literal)" (file-local-name pathspec)))) (defun vc-git--literal-pathspecs (pathspecs) "Prepend :(literal) path magic to PATHSPECS." |