index : git-mirror-sync.git

ascending towards madness

author holly sparkles <sparkles@holly.sh> 2024-01-26 8:30:36.0 +00:00:00
committer holly sparkles <sparkles@holly.sh> 2024-01-26 8:30:36.0 +00:00:00
commit
b953d2227e2b1125fde493dbed6da5567e6c6c81 [patch]
tree
03b46f0603f26442aa3f176ea36779af1506c939
parent
18c13962b6cec09e3213050d7191f47133079795
download
main.tar.gz

fix: missing repos prompting for login credentials



Diff

 src/main.rs | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index a0b2679..743c60f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -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())
            }
        }