only disable git check for ./mk -b coreboot

the previous patch was half the battle. now that
annoying person who complained on irc should be
happy.

someone complained about having to enter git
name/email when just doing e.g. ./mk inject

a valid complaint, but their attitude kinda
stunk. oh well. this patch should satisfy them.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-07-27 23:35:38 +01:00
parent 06fd12953f
commit 8b59310209
+15
View File
@@ -461,6 +461,21 @@ xbmk_git_init()
break
fi
if [ $# -gt 2 ] && [ "$3" != "coreboot" ]; then
# we still might run -b sometimes, for e.g.
# dependencies of ./mk inject. if -b is used
# but it's not for coreboot, don't check.
# coreboot is a multi-tree project, so the third
# argument will always be coreboot, when building
# with -b.
# we only need the git name/email check when
# doing ./mk -b coreboot
break
fi
gitcmd="git config --includes $gitarg"
if ! $gitcmd 1>/dev/null 2>/dev/null; then
err "Run this first: $gitcmd \"your ${gitcmd##*.}\"" \