diff options
author | Tassilo Horn <tsdh@gnu.org> | 2020-06-18 07:53:45 +0200 |
---|---|---|
committer | Tassilo Horn <tsdh@gnu.org> | 2020-06-18 07:55:38 +0200 |
commit | a4f1d681c10e39429d4ba6d9ca42b009a7b003fb (patch) | |
tree | c528e7ff2c93b60a39d787bc72bd5678b5c4b0a8 /lisp/vc | |
parent | 7c177ecb8407633e624cd7e12a0c0d12b8990c32 (diff) | |
download | emacs-a4f1d681c10e39429d4ba6d9ca42b009a7b003fb.tar.gz |
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.
Diffstat (limited to 'lisp/vc')
-rw-r--r-- | lisp/vc/vc-git.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index 1cd2a7bb133..b5cb842aeee 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) |