nikivdev/code · error
git {} failed with status {}
Error message
git {} failed with status {} What it means
Error "git {} failed with status {}" thrown in nikivdev/code.
Source
Thrown at src/commit.rs:12314
}
fn git_run(args: &[&str]) -> Result<()> {
let mut cmd = Command::new("git");
if args.first() == Some(&"commit") {
cmd.env("FLOW_COMMIT", "1");
if entire_enabled() {
cmd.env("ENTIRE_TEST_TTY", "1");
}
}
let status = cmd
.args(args)
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.status()
.with_context(|| format!("failed to run git {}", args.join(" ")))?;
if !status.success() {
bail!("git {} failed with status {}", args.join(" "), status);
}
Ok(())
}
fn git_run_in(workdir: &std::path::Path, args: &[&str]) -> Result<()> {
let mut cmd = Command::new("git");
if args.first() == Some(&"commit") {
cmd.env("FLOW_COMMIT", "1");
if entire_enabled() {
cmd.env("ENTIRE_TEST_TTY", "1");
}
}
let status = cmd
.current_dir(workdir)
.args(args)
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.status()View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/commit.rs:12314 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01).
Data as JSON: /api/errors/dfef559197048b8e.
Report an issue: GitHub.