Skip to content

Commit

Permalink
bugfix: replace Repo.clone with Repo.clone_from in ETL Pipeline endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Oct 10, 2023
1 parent 1fd9e1a commit 47be6aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/src/backend/views/ETLPipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ def post(self, request, group_id, *_, **__):
# Clone the git repository that contains the pipeline and task definitions that will be used
tapis_owe_templates_dir = "/tmp/git/tapis-owe-templates"
try:
Repo.clone(uses.source.url, tapis_owe_templates_dir)
Repo.clone_from(
uses.source.url,
tapis_owe_templates_dir
)
except Exception as e:
return ServerErrorResp(f"Error cloning the Tapis OWE Template repository: {str(e)}")
print("AFTER GIT CLONE")
Expand Down

0 comments on commit 47be6aa

Please sign in to comment.