Skip to content

Commit ce6435d

Browse files
authored
Merge pull request #658 from Kobzol/bors-squash-debug
Add more git push logs
2 parents 78a0112 + 69f7e9d commit ce6435d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/bors/gitops.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,21 @@ impl Git {
9090
token.expose_secret()
9191
);
9292

93-
tracing::debug!("Pushing commit");
93+
tracing::debug!(
94+
"Pushing commit to https://bors:<token>@github.com/{target_repo}.git, refspec `{refspec}`"
95+
);
9496

9597
// And then push the commit
9698
run_command(
9799
tokio::process::Command::new(&self.git)
98100
.kill_on_drop(true)
99101
.current_dir(&clone_path)
102+
.env("GIT_TRACE", "1")
100103
// Do not store the token on disk
101-
.arg("-c")
102-
.arg("credential.helper=")
104+
// .arg("-c")
105+
// .arg("credential.helper=")
103106
.arg("push")
107+
.arg("-v")
104108
.arg(&target_repo_url)
105109
.arg(refspec),
106110
)

0 commit comments

Comments
 (0)