From c56986d0437634afb912633f7d3f8a1d83e31865 Mon Sep 17 00:00:00 2001 From: CI Date: Mon, 1 Mar 2021 16:17:54 -0400 Subject: [PATCH] removed global flag on git config to avoid overwriting user git config settings --- 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 6aa097d..06aa11a 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("--global", "user.email", "ci@algorithmia.com") - sh.git.config("--global", "user.name", "CI") + sh.git.config("user.email", "ci@algorithmia.com") + sh.git.config("user.name", "CI") clone_bake = sh.git.bake(C=workspace_path) publish_bake = sh.git.bake(C=repo_path) clone_bake.clone(git_path)