init.sh: Don't check global git config

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 <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-07-21 19:34:26 +01:00
parent 049ee793db
commit 9dd6ed84ca
+1 -1
View File
@@ -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##*.}\"" \