init.sh: make git name/email error more useful

instruct the user what to do in these conditions

Signed-off-by: Leah Rowe <leah@libreboot.org>
25.04_branch
Leah Rowe 2025-04-26 23:02:04 +01:00
parent ec287ca69e
commit 4ff7cd3d77
1 changed files with 4 additions and 2 deletions

View File

@ -198,8 +198,10 @@ xbmk_git_init()
x_ git tag -a "$version" -m "$projectname $version" 1>/dev/null \ x_ git tag -a "$version" -m "$projectname $version" 1>/dev/null \
2>/dev/null 2>/dev/null
x_ git config --global user.name for gitarg in "--global user.name" "--global user.email"; do
x_ git config --global user.email gitcmd="git config $gitarg"; $gitcmd || $err \
"Please run this first: $gitcmd \"your ${gitcmd##*.}\""
done
} }
xbmk_create_tmpdir() xbmk_create_tmpdir()