Skip to content

Commit

Permalink
Silence git checkout warnings
Browse files Browse the repository at this point in the history
Fixes: #126
  • Loading branch information
Johennes committed Oct 15, 2024
1 parent c3fd7ab commit 08ce70e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/ubrn_cli/src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ impl GitRepoArgs {
.arg(sha);
run_cmd(&mut cmd)?;

// git checkout $sha
// git checkout --quiet $sha
let mut cmd = Command::new("git");
cmd.current_dir(self.directory(project_root)?)
.arg("checkout")
.arg("--quiet") // Suppress detached head and dangling commit warnings
.arg(sha);
run_cmd(&mut cmd)
}
Expand Down

0 comments on commit 08ce70e

Please sign in to comment.