Diff
src/main.rs | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
@@ -50,15 +50,17 @@ async fn do_sync_task(args: CliArgs) {
.stdout;
if !refs_tag.is_empty() {
let status = Command::new("git")
let output = Command::new("git")
.env("GIT_TERMINAL_PROMPT", "0")
.arg("--git-dir")
.arg(dir.clone().into_path())
.arg("fetch")
.arg("--all")
.status()
.output()
.await
.expect("Unable to fetch repository");
if !status.success() {
if !output.status.success() {
error!("Failed to update repository {:?}", dir.path())
}
}