summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-07-27 23:35:38 +0100
committerLeah Rowe <leah@libreboot.org>2026-07-27 23:35:38 +0100
commit8b59310209f9e94d668104027d76164acad4abdd (patch)
treee80d673883b0a5b9ec3ee82b3f833bcd1c7ed573
parent06fd12953f4b9f0a0b8c76e6fd4b78fd5ee012df (diff)
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>
-rw-r--r--include/init.sh15
1 files changed, 15 insertions, 0 deletions
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##*.}\"" \