[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 2b62b2a 1/2: Make sure to remove the remote specification before
From: |
Dmitry Gutov |
Subject: |
master 2b62b2a 1/2: Make sure to remove the remote specification before adding :(literal) |
Date: |
Wed, 25 Aug 2021 21:48:21 -0400 (EDT) |
branch: master
commit 2b62b2a019b488110901aeff08957c7d903e1588
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
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).
---
lisp/vc/vc-git.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 935dc8b..779326b 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."