From 6dc2336a4f2c49e5678ebf7ed7b7b4e5ad3ca565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Engdeg=C3=A5rd?= Date: Wed, 4 Feb 2026 13:26:08 +0100 Subject: [PATCH] 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. --- test/lisp/vc/vc-git-tests.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lisp/vc/vc-git-tests.el b/test/lisp/vc/vc-git-tests.el index 1552608071e..9721cc4d4ff 100644 --- a/test/lisp/vc/vc-git-tests.el +++ b/test/lisp/vc/vc-git-tests.el @@ -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)))