From 549ae080615716d7b1957e488474ebecef4f5087 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Thu, 19 Jan 2023 01:34:56 +0100 Subject: [PATCH] armbian-next: `git`: show "fetch completed" info, lest user thinks fetch is hanging while checking out --- lib/functions/general/git.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/functions/general/git.sh b/lib/functions/general/git.sh index fad39a67b7..cc20e99394 100644 --- a/lib/functions/general/git.sh +++ b/lib/functions/general/git.sh @@ -193,7 +193,7 @@ fetch_from_repo() { ;; commit) # @TODO: if the local copy has the revision, skip the fetch -- would save us a lot of time - display_alert "Fetching a specific commit/sha1" "${ref_name}" "warn" + display_alert "Fetching a specific commit/sha1" "${ref_name}" "debug" improved_git_fetch --no-tags "${url}" "${ref_name}" ;; tag) @@ -203,6 +203,8 @@ fetch_from_repo() { improved_git_fetch --no-tags "${url}" HEAD ;; esac + + display_alert "Fetches completed, checking out..." "$dir $ref_name" "info" checkout_from="FETCH_HEAD" fi