From 80673950020cb571b7b19e16a1dd8db3f026cee8 Mon Sep 17 00:00:00 2001 From: thek4n Date: Mon, 11 Dec 2023 10:20:37 +0300 Subject: [PATCH] fix git post-install hook --- install-hooks/git/post-install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install-hooks/git/post-install b/install-hooks/git/post-install index 64d7a1e..5e943d3 100755 --- a/install-hooks/git/post-install +++ b/install-hooks/git/post-install @@ -1,5 +1,8 @@ #!/usr/bin/env bash git config --global user.name "$USER" -git config --global user.email "${USER}@${HOST}" +git config --global user.email "${USER}@${HOST:-$HOSTNAME}" git config --global user.signingkey "$USER" + +git config --global github.user "$USER" +git config --global github.email "${USER}@${HOST:-$HOSTNAME}"