From 646085c3f43e39bd61007a3e290a3328db826c22 Mon Sep 17 00:00:00 2001 From: Mari Date: Wed, 25 Dec 2019 14:53:14 -0500 Subject: [PATCH] Autoset git user info in new-host.sh --- new-host.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/new-host.sh b/new-host.sh index 8e81106..74f2159 100644 --- a/new-host.sh +++ b/new-host.sh @@ -27,6 +27,13 @@ fi ORIGIN=$(git ls-remote --get-url origin) if [[ "$ORIGIN" != 'git@github.com:programmablereya/common-configs.git' ]]; then git remote set-url origin git@github.com:programmablereya/common-configs.git +fi - sync_git_only +GITMAIL=$(git config user.email) +GITUSER=$(git config user.name) +if [[ "$GITMAIL" != 'mstaib.git@reya.zone' ]] || [[ "$GITUSER" != 'Mari' ]]; then + git config user.email 'mstaib.git@reya.zone' + git config user.name 'Mari' fi + +sync_git_only