Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Oct 23, 2023
1 parent 773d1d9 commit f6efc73
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/engine/src/core/tasks/executors/Function.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,10 @@ def execute(self):
job_name = gen_resource_name(prefix="fn")
# Prepares the file system for the Function task by clone
# git repsoitories specified in the request
git_cache_service = GitCacheService(cache_dir=self.task.exec_dir)
try:
for repo in self.task.git_repositories:
git_cache_service = GitCacheService(
cache_dir=os.path.join(self.task.exec_dir, repo.directory)
)
git_cache_service.add(repo.url, branch=repo.branch)
git_cache_service.add(repo.url, repo.directory, branch=repo.branch)
except Exception as e:
return self._task_result(1, errors=[str(e)])

Expand Down

0 comments on commit f6efc73

Please sign in to comment.