makepkg: fix git checksumming depends on user config

This commit is contained in:
lilydjwg 2024-03-29 13:09:32 +08:00 committed by Allan McRae
parent 03d884d7ff
commit 8e30cd4e38

View file

@ -150,7 +150,7 @@ calc_checksum_git() {
case ${fragment%%=*} in
tag|commit)
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%% *}"
;;
*)