Browse Source

Update git.sh

master
Pekka Helenius 3 years ago
committed by GitHub
parent
commit
778af58ffe
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      pacman/usr/share/makepkg/source/git.sh

+ 6
- 2
pacman/usr/share/makepkg/source/git.sh View File

@ -62,8 +62,12 @@ download_git() {
plain "$(gettext "Aborting...")" plain "$(gettext "Aborting...")"
exit 1 exit 1
fi 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 # only warn on failure to allow offline builds
warning "$(gettext "Failure while updating %s %s repo")" "${repo}" "git" warning "$(gettext "Failure while updating %s %s repo")" "${repo}" "git"
fi fi


Loading…
Cancel
Save