[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d1dbf7f 1/2: Revert "Bind the GIT_LITERAL_PATHSPECS environment v
From: |
Dmitry Gutov |
Subject: |
master d1dbf7f 1/2: Revert "Bind the GIT_LITERAL_PATHSPECS environment variable" |
Date: |
Sat, 14 Aug 2021 21:23:55 -0400 (EDT) |
branch: master
commit d1dbf7fc9e64add642f3cfe22231afebac62cad2
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Revert "Bind the GIT_LITERAL_PATHSPECS environment variable"
This reverts commit a2d0ff26005c5c10ffe0d84bd8b458a06828be82.
It was found to break a certain use case, and we decided to go with
the other solution (bug#39452).
---
etc/NEWS | 6 ------
lisp/vc/vc-git.el | 2 --
2 files changed, 8 deletions(-)
diff --git a/etc/NEWS b/etc/NEWS
index a3a2543..09ace73 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -961,12 +961,6 @@ keys, add the following to your init file:
** Change Logs and VC
-*** vc-git now sets the 'GIT_LITERAL_PATHSPECS' environment variable.
-This ensures that Git operations on files containing wildcard
-characters work as they're supposed to. However, this also affects
-scripts running from Git hooks, and these have to "unset
-GIT_LITERAL_PATHSPECS" to work as before.
-
*** More VC commands can be used from non-file buffers.
The relevant commands are those that don't change the VC state.
The non-file buffers which can use VC commands are those that have
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 1430871..5828a83 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1772,7 +1772,6 @@ The difference to vc-do-command is that this function
always invokes
(process-environment
(append
`("GIT_DIR"
- "GIT_LITERAL_PATHSPECS=1"
;; Avoid repository locking during background operations
;; (bug#21559).
,@(when revert-buffer-in-progress-p
@@ -1807,7 +1806,6 @@ The difference to vc-do-command is that this function
always invokes
(process-environment
(append
`("GIT_DIR"
- "GIT_LITERAL_PATHSPECS=1"
;; Avoid repository locking during background operations
;; (bug#21559).
,@(when revert-buffer-in-progress-p