From bdd6680aae8e70ace6eb4992002d6e1e6b52df52 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Fri, 29 Mar 2024 13:09:32 +0800 Subject: [PATCH] makepkg: fix git checksumming depends on user config (cherry picked from commit 8e30cd4e38b15cb20f0ec89f1504b4ac8154e766) --- scripts/libmakepkg/source/git.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/libmakepkg/source/git.sh.in b/scripts/libmakepkg/source/git.sh.in index 1cad998d..5dc0d19a 100644 --- a/scripts/libmakepkg/source/git.sh.in +++ b/scripts/libmakepkg/source/git.sh.in @@ -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%% *}" ;; *)