1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-13 11:12:19 -08:00

Make vc-git-tests work with git < 2.46

* test/lisp/vc/vc-git-tests.el (vc-git-test-branch-remotes):
The 'unset' subcommand to 'git config' was introduced in git 2.46; use
the '--unset' option instead.
This commit is contained in:
Mattias Engdegård 2026-02-04 13:26:08 +01:00
parent 083f89f858
commit 6dc2336a4f

View file

@ -217,7 +217,7 @@ is absent."
(should (assq 'upstream alist))
(should (equal (cdr (assq 'push alist))
(concat "fork/" main-branch))))
(vc-git--out-ok "config" "unset"
(vc-git--out-ok "config" "--unset"
(format "branch.%s.pushRemote" main-branch))
(vc-git--out-ok "config" "remote.pushDefault" "fork")
(let ((alist (vc-git--branch-remotes)))