Skip to content

Commit ae946db

Browse files
Use backwards-compatible options to git config (#7934)
1 parent 5b2c840 commit ae946db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xtask/src/cts.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub fn run_cts(shell: Shell, mut args: Arguments) -> anyhow::Result<()> {
8080
// clones may not have it. Eventually this can be removed.
8181
if shell
8282
.cmd("git")
83-
.args(["config", "get", "remote.origin.fetch"])
83+
.args(["config", "--get", "remote.origin.fetch"])
8484
.quiet()
8585
.ignore_stdout()
8686
.ignore_stderr()
@@ -91,7 +91,6 @@ pub fn run_cts(shell: Shell, mut args: Arguments) -> anyhow::Result<()> {
9191
.cmd("git")
9292
.args([
9393
"config",
94-
"set",
9594
"remote.origin.fetch",
9695
"+refs/heads/gh-pages:refs/remotes/origin/gh-pages",
9796
])

0 commit comments

Comments
 (0)