From b2fd600f0dde3714da31e60e6207cb87b79e993f Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 1 Jul 2019 09:20:48 +0300 Subject: [PATCH] Disabling git should not pull any repository (fix #158) --- src/config.rs | 2 +- src/main.rs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/config.rs b/src/config.rs index ddafabe3..a34cb6fc 100644 --- a/src/config.rs +++ b/src/config.rs @@ -37,7 +37,7 @@ lazy_static! { pub enum Step { /// Don't perform system upgrade System, - /// Don't perform updates on configured git repos + /// Don't pull git repositories GitRepos, /// Don't upgrade Vim packages or configuration files Vim, diff --git a/src/main.rs b/src/main.rs index e9139dc4..a0a373d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -243,13 +243,13 @@ fn run() -> Result<(), Error> { git_repos.insert(git_repo); } } + execute( + &mut report, + "Git repositories", + || git.multi_pull(&git_repos, run_type), + config.no_retry(), + )?; } - execute( - &mut report, - "Git repositories", - || git.multi_pull(&git_repos, run_type), - config.no_retry(), - )?; #[cfg(windows)] {