From ae946dbb8cf173eb77fdc0a7e80d42d840afac20 Mon Sep 17 00:00:00 2001 From: Andy Leiserson Date: Fri, 11 Jul 2025 13:20:13 -0700 Subject: [PATCH] Use backwards-compatible options to `git config` (#7934) --- xtask/src/cts.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xtask/src/cts.rs b/xtask/src/cts.rs index 8af0953e7..9128181d6 100644 --- a/xtask/src/cts.rs +++ b/xtask/src/cts.rs @@ -80,7 +80,7 @@ pub fn run_cts(shell: Shell, mut args: Arguments) -> anyhow::Result<()> { // clones may not have it. Eventually this can be removed. if shell .cmd("git") - .args(["config", "get", "remote.origin.fetch"]) + .args(["config", "--get", "remote.origin.fetch"]) .quiet() .ignore_stdout() .ignore_stderr() @@ -91,7 +91,6 @@ pub fn run_cts(shell: Shell, mut args: Arguments) -> anyhow::Result<()> { .cmd("git") .args([ "config", - "set", "remote.origin.fetch", "+refs/heads/gh-pages:refs/remotes/origin/gh-pages", ])