emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master a4f1d68: Bind default-directory to given DIR.


From: Tassilo Horn
Subject: master a4f1d68: Bind default-directory to given DIR.
Date: Thu, 18 Jun 2020 01:55:46 -0400 (EDT)

branch: master
commit a4f1d681c10e39429d4ba6d9ca42b009a7b003fb
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>

    Bind default-directory to given DIR.
    
    Otherwise, "git config branch.<branch>.remote" would return the global
    default "origin" instead of the actual, project-specific remote name.
    
    * lisp/vc/vc-git.el (vc-git-dir-extra-headers): Bind default-directory
    to given DIR.
---
 lisp/vc/vc-git.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index 1cd2a7b..b5cb842 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -735,6 +735,7 @@ or an empty string if none."
                (with-current-buffer standard-output
                  (vc-git--out-ok "symbolic-ref" "HEAD"))))
        (stash-list (vc-git-stash-list))
+        (default-directory dir)
 
        branch remote remote-url stash-button stash-string)
     (if (string-match "^\\(refs/heads/\\)?\\(.+\\)$" str)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]