From 8b59310209f9e94d668104027d76164acad4abdd Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 27 Jul 2026 23:35:38 +0100 Subject: 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 --- include/init.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/init.sh') diff --git a/include/init.sh b/include/init.sh index f8f0f910..36865c19 100644 --- a/include/init.sh +++ b/include/init.sh @@ -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##*.}\"" \ -- cgit v1.2.1