makepkg: fix git checksumming depends on user config

(cherry picked from commit 8e30cd4e38)
This commit is contained in:
lilydjwg 2024-03-29 13:09:32 +08:00 committed by Allan McRae
parent abec6bc139
commit bdd6680aae

View file

@ -150,7 +150,7 @@ calc_checksum_git() {
case ${fragment%%=*} in case ${fragment%%=*} in
tag|commit) tag|commit)
fragval=${fragment##*=} fragval=${fragment##*=}
sum=$(git -c core.abbrev=no -C "$dir" archive --format tar "$fragval" | "${integ}sum" 2>&1) || ret=1 sum=$(GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_SYSTEM=/dev/null git -c core.abbrev=no -C "$dir" archive --format tar "$fragval" | "${integ}sum" 2>&1) || ret=1
sum="${sum%% *}" sum="${sum%% *}"
;; ;;
*) *)