From a79f02f725e9a4614849836a6c5915a0466d63d7 Mon Sep 17 00:00:00 2001 From: zeryx Date: Mon, 1 Mar 2021 18:18:12 -0400 Subject: [PATCH] added global back, as it's required for CI/CD --- src/algorithm_creation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/algorithm_creation.py b/src/algorithm_creation.py index 06aa11a..6aa097d 100644 --- a/src/algorithm_creation.py +++ b/src/algorithm_creation.py @@ -65,8 +65,8 @@ def update_algorithm(algo, original_name, algorithm_pairs, remote_client, worksp git_path = f"https://{algo.username}:{api_key}@git.{api_address.split('https://api.')[-1]}/git/{destination_username}/{destination_algorithm_name}.git" os.makedirs(artifact_path, exist_ok=True) os.makedirs(repo_path, exist_ok=True) - sh.git.config("user.email", "ci@algorithmia.com") - sh.git.config("user.name", "CI") + sh.git.config("--global", "user.email", "ci@algorithmia.com") + sh.git.config("--global", "user.name", "CI") clone_bake = sh.git.bake(C=workspace_path) publish_bake = sh.git.bake(C=repo_path) clone_bake.clone(git_path)