From cd320cce61bc99354cb2607b290661fec3c88266 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Thu, 24 Dec 2020 21:11:41 +0300 Subject: [PATCH] Set author info after changing directory --- .ci/move_binary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/move_binary.py b/.ci/move_binary.py index b9f3a07..701dd56 100755 --- a/.ci/move_binary.py +++ b/.ci/move_binary.py @@ -58,12 +58,12 @@ author_name = subprocess.check_output( author_email = subprocess.check_output( ["git", "log", "-1", "--pretty=format:%ae"] ).decode("utf-8") -subprocess.check_call(["git", "config", "user.name", author_name]) -subprocess.check_call(["git", "config", "user.email", author_email]) # Prepare for pushing os.chdir(data_repository_directory) os.makedirs(directory, exist_ok=True) +subprocess.check_call(["git", "config", "user.name", author_name]) +subprocess.check_call(["git", "config", "user.email", author_email]) # Ensure that there are no changes subprocess.check_call(["git", "pull", "origin", data_repository, "--ff-only"])