From 778af58ffeb6d273327896956c5d51c40f304ad7 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Sat, 21 Aug 2021 12:55:56 +0300 Subject: [PATCH] Update git.sh --- pacman/usr/share/makepkg/source/git.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pacman/usr/share/makepkg/source/git.sh b/pacman/usr/share/makepkg/source/git.sh index 70f8c87..231eb24 100755 --- a/pacman/usr/share/makepkg/source/git.sh +++ b/pacman/usr/share/makepkg/source/git.sh @@ -62,8 +62,12 @@ download_git() { plain "$(gettext "Aborting...")" exit 1 fi - msg2 "$(gettext "Updating %s %s repo...")" "${repo}" "git" - if ! git fetch --all -p; then + if [[ ${options[@]} ]]; then + msg2 "$(gettext "Updating %s %s repo (params: %s)...")" "${repo}" "git" "${options[*]}" + else + msg2 "$(gettext "Updating %s %s repo...")" "${repo}" "git" + fi + if ! git fetch ${options[*]} -p; then # only warn on failure to allow offline builds warning "$(gettext "Failure while updating %s %s repo")" "${repo}" "git" fi