mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-22 14:36:31 +02:00
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>
This commit is contained in:
+1
-1
@@ -434,7 +434,7 @@ xbmk_set_mirror()
|
|||||||
|
|
||||||
xbmk_git_init()
|
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"
|
gitcmd="git config $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##*.}\"" \
|
||||||
|
|||||||
Reference in New Issue
Block a user