From 840a5d97b041b1a5139821af438f3e161394a251 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sun, 16 Apr 2023 23:02:54 +0700 Subject: [PATCH] fix GIT_AUTHOR_NAME --- files/pushgit.sh | 2 ++ vestasync.py | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/pushgit.sh b/files/pushgit.sh index 6d13263..f5d385d 100644 --- a/files/pushgit.sh +++ b/files/pushgit.sh @@ -1,4 +1,6 @@ #!/usr/bin/env sh +export GIT_AUTHOR_NAME="vestasync_wb_$(hostname)" +export GIT_COMMITTER_NAME="vestasync_wb_$(hostname)" cd /mnt/data/etc/ > /dev/null 2>&1 || true git add . > /dev/null 2>&1 || true git commit -m "$(date)" > /dev/null 2>&1 || true diff --git a/vestasync.py b/vestasync.py index 9b14de8..8e36e96 100755 --- a/vestasync.py +++ b/vestasync.py @@ -70,8 +70,7 @@ def prepare_packages_wb(c): def configure_git(c): - hostname = c.run('hostname', hide=True).stdout.strip() - c.run(f'git config --global user.name vestasync_wb_{hostname}') + c.run(f'git config --global user.name vestasync_wb_$(hostname)_manual') c.run(f'git config --global user.email "vestasync@fake.mail"') c.run(f'git config --global init.defaultBranch "master"')