init.sh: add --includes to git config check

just to be sure

this now matches util/gitconfig/gitconfig.sh in coreboot

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-07-21 20:12:44 +01:00
parent 76e5a07774
commit 1514e82be0
+1 -1
View File
@@ -450,7 +450,7 @@ xbmk_set_mirror()
xbmk_git_init() xbmk_git_init()
{ {
for gitarg in "user.name" "user.email"; do for gitarg in "user.name" "user.email"; do
gitcmd="git config $gitarg" gitcmd="git config --includes $gitarg"
if ! $gitcmd 1>/dev/null 2>/dev/null; then if ! $gitcmd 1>/dev/null 2>/dev/null; then
err "Run this first: $gitcmd \"your ${gitcmd##*.}\"" \ err "Run this first: $gitcmd \"your ${gitcmd##*.}\"" \
"xbmk_git_init" "$@" "xbmk_git_init" "$@"