abuild-keygen: allow override git binary

Makes it easier to test without creating a fake git binary
This commit is contained in:
Natanael Copa 2022-06-15 10:58:35 +02:00
parent 2326f0c4ef
commit 657a2086cf
1 changed files with 1 additions and 1 deletions

View File

@ -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))"