diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-07-21 19:34:26 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-07-21 19:34:26 +0100 |
| commit | 9dd6ed84cac66e94eb7554a54c96368f27db3d14 (patch) | |
| tree | 5ff9436f3d638f2f1ce98290820a46e7a7cac7cb | |
| parent | 049ee793dbbe5c528077402f8ba9cd01b90b6669 (diff) | |
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>
| -rw-r--r-- | include/init.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/init.sh b/include/init.sh index cde489dd..7c4e5f9e 100644 --- a/include/init.sh +++ b/include/init.sh @@ -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##*.}\"" \ |
