Skip to content

Commit

Permalink
feat(git): log name of package that initiated failed git operation
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobarbolini committed Apr 2, 2024
1 parent 3db7c05 commit 576d4d7
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ fn main() -> Result<()> {
.env("GIT_TERMINAL_PROMPT", "0")
.output()?;
if !out.status.success() {
println!("Couldn't clone {} repo status={}", repository, out.status);
println!(
"Couldn't clone {} repo for package {} v{} status={}",
repository, package.name, package.version, out.status
);
continue;
}
}
Expand Down Expand Up @@ -378,8 +381,8 @@ fn main() -> Result<()> {
.context("checkout the commit")?;
if !out.status.success() {
println!(
"Couldn't checkout the commit in {} repo status={}",
repository, out.status
"Couldn't checkout the commit in {} repo for package {} v{} status={}",
repository, package.name, package.version, out.status
);
continue;
}
Expand All @@ -393,8 +396,8 @@ fn main() -> Result<()> {
.context("init submodules")?;
if !out.status.success() {
println!(
"Couldn't init submodules in {} repo status={}",
repository, out.status
"Couldn't init submodules in {} repo for package {} v{} status={}",
repository, package.name, package.version, out.status
);
continue;
}
Expand All @@ -408,8 +411,8 @@ fn main() -> Result<()> {
.context("sync submodules")?;
if !out.status.success() {
println!(
"Couldn't sync submodules in {} repo status={}",
repository, out.status
"Couldn't sync submodules in {} repo for package {} v{} status={}",
repository, package.name, package.version, out.status
);
continue;
}
Expand All @@ -423,8 +426,8 @@ fn main() -> Result<()> {
.context("update submodules")?;
if !out.status.success() {
println!(
"Couldn't update submodules in {} repo status={}",
repository, out.status
"Couldn't update submodules in {} repo for package {} v{} status={}",
repository, package.name, package.version, out.status
);
continue;
}
Expand Down

0 comments on commit 576d4d7

Please sign in to comment.