From 9dd6ed84cac66e94eb7554a54c96368f27db3d14 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 21 Jul 2026 19:34:26 +0100 Subject: init.sh: Don't check global git config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some users have it in a file e.g. inside ~/.gitconfig Those users are currently forced to set git config globally by lbmk. We only need to check that a git config is set, regardless of scope, because coreboot needs it in parts of its build system when used on lbmk. This prevents a pointless error report for users who have their git config on such a scope. Thanks go to Hendrik Jäger for reporting this to me. Yes, thank you. Further context: https://lore.kernel.org/git/20260720113402.0dc16abe@frustcomp.hnjs.home.arpa/T/#u Signed-off-by: Leah Rowe --- include/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/init.sh') diff --git a/include/init.sh b/include/init.sh index cde489dd..7c4e5f9e 100644 --- a/include/init.sh +++ b/include/init.sh @@ -434,7 +434,7 @@ xbmk_set_mirror() xbmk_git_init() { - for gitarg in "--global user.name" "--global user.email"; do + for gitarg in "user.name" "user.email"; do gitcmd="git config $gitarg" if ! $gitcmd 1>/dev/null 2>/dev/null; then err "Run this first: $gitcmd \"your ${gitcmd##*.}\"" \ -- cgit v1.2.1