pkg/arch: Set name/email in local git config

We run the PKGBUILD as 'nobody', so we can't set global git config
options. So set local ones instead.
This commit is contained in:
Maximilian Luz 2021-10-27 15:22:25 +02:00
parent f57e4e537e
commit 68152aaff2
No known key found for this signature in database
GPG key ID: 70EC0937F6C26F02

View file

@ -78,8 +78,8 @@ prepare() {
echo "${pkgbase#linux}" > localversion.20-pkgname
# setup git
git config --global user.email "surfacebot@users.noreply.github.com"
git config --global user.name "surfacebot"
git config --local user.email "surfacebot@users.noreply.github.com"
git config --local user.name "surfacebot"
local src
for src in "${source[@]}"; do