Skip to content

Commit

Permalink
removed global flag on git config to avoid overwriting user git confi…
Browse files Browse the repository at this point in the history
…g settings
  • Loading branch information
CI committed Mar 1, 2021
1 parent c540404 commit c56986d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algorithm_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", "[email protected]")
sh.git.config("--global", "user.name", "CI")
sh.git.config("user.email", "[email protected]")
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)
Expand Down

0 comments on commit c56986d

Please sign in to comment.