diff --git a/doc/makepkg.8.asciidoc b/doc/makepkg.8.asciidoc index b7b6d044..a2ad5279 100644 --- a/doc/makepkg.8.asciidoc +++ b/doc/makepkg.8.asciidoc @@ -297,9 +297,6 @@ Environment Variables **BUILDTOOLVER=**"":: The version of the '$BUILDTOOL' used. -**GITFLAGS**:: - The options to pass when checking out git sources, replacing the default - "--mirror". Configuration ------------- diff --git a/scripts/libmakepkg/source/git.sh.in b/scripts/libmakepkg/source/git.sh.in index dbe844a0..5f700a09 100644 --- a/scripts/libmakepkg/source/git.sh.in +++ b/scripts/libmakepkg/source/git.sh.in @@ -49,7 +49,7 @@ download_git() { if [[ ! -d "$dir" ]] || dir_is_empty "$dir" ; then msg2 "$(gettext "Cloning %s %s repo...")" "${repo}" "git" - if ! git clone --origin=origin ${GITFLAGS:---mirror} "$url" "$dir"; then + if ! git clone --origin=origin ---mirror "$url" "$dir"; then error "$(gettext "Failure while downloading %s %s repo")" "${repo}" "git" plainerr "$(gettext "Aborting...")" exit 1