mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-30 19:21:59 +00:00
abuild-keygen: allow override git binary
Makes it easier to test without creating a fake git binary
This commit is contained in:
parent
2326f0c4ef
commit
657a2086cf
@ -27,7 +27,7 @@ get_privkey_file() {
|
||||
|
||||
# if PACKAGER does not contain a valid email address, then ask git
|
||||
if [ -z "$emailaddr" ] || [ "${emailaddr##*@}" = "$emailaddr" ]; then
|
||||
emailaddr=$(git config --get user.email 2>/dev/null || true)
|
||||
emailaddr=$(${GIT:-git} config --get user.email 2>/dev/null || true)
|
||||
fi
|
||||
|
||||
default_name="${emailaddr:-$USER}-$(printf "%x" $(date +%s))"
|
||||
|
Loading…
Reference in New Issue
Block a user