diff options
| author | Leah Rowe <vimuser@noreply.codeberg.org> | 2026-07-28 03:23:41 +0200 |
|---|---|---|
| committer | Leah Rowe <vimuser@noreply.codeberg.org> | 2026-07-28 03:23:41 +0200 |
| commit | d64090d0b24fb9454ed08de5cc8f7dd9a54a9ce6 (patch) | |
| tree | c83fb5a5ab38c18fb330883d0c9a2070f1f9572c /include/init.sh | |
| parent | 8b59310209f9e94d668104027d76164acad4abdd (diff) | |
| parent | ab13b802503bb1ad27e4085aa0258a1ec4c058c5 (diff) | |
Merge pull request 'Fix Git identity handling in xbmk_git_init' (#445) from zoomm10/lbmk:fix-git-identity into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/445
Diffstat (limited to 'include/init.sh')
| -rw-r--r-- | include/init.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/init.sh b/include/init.sh index 36865c19..5675f035 100644 --- a/include/init.sh +++ b/include/init.sh @@ -452,7 +452,7 @@ xbmk_set_mirror() xbmk_git_init() { for gitarg in "user.name" "user.email"; do - if [ "$2" != "-b" ]; then + if [ "${2-}" != "-b" ]; then # we only need git name/email set for building # coreboot. this is a bit of a hack, but it should @@ -501,10 +501,12 @@ xbmk_git_init() x_ git init 1>/dev/null 2>/dev/null x_ git add -A . 1>/dev/null 2>/dev/null - x_ git commit -m "$projectname $version" --date "$cdate" \ + x_ git -c user.name="xbmk" -c user.email="xbmk@example.com" \ + commit -m "$projectname $version" --date "$cdate" \ --author="xbmk <xbmk@example.com>" 1>/dev/null 2>/dev/null - x_ git tag -a "$version" -m "$projectname $version" 1>/dev/null \ - 2>/dev/null; : + x_ git -c user.name="xbmk" -c user.email="xbmk@example.com" \ + tag -a "$version" -m "$projectname $version" \ + 1>/dev/null 2>/dev/null; : } xbmk_child_exec() |
