Compare commits

...
2 Commits
Author SHA1 Message Date
brb 7eb8e5d2fd removed print statement 2023-07-05 21:22:41 +02:00
brb bf618c7cbe updated print statement 2023-07-05 21:22:23 +02:00
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ def handle_event(request: GiteaRequest):
# clone repository # clone repository
repo_url = request.repository['clone_url'] repo_url = request.repository['clone_url']
local_repo_dir = clone_repository(repo_url) local_repo_dir = clone_repository(repo_url)
print(local_repo_dir) print('local_repo_dir: ', local_repo_dir)
return {'status': 'success'} return {'status': 'success'}
if __name__ == '__main__': if __name__ == '__main__':
-1
View File
@@ -3,7 +3,6 @@ from pathlib import Path
from git import Repo from git import Repo
def clone_repository(repo_url: AnyHttpUrl) -> Path: def clone_repository(repo_url: AnyHttpUrl) -> Path:
print(f'cloning into {repo_url}')
# extract repo name # extract repo name
repo_name = repo_url.split('/')[-1].replace('.git', '') repo_name = repo_url.split('/')[-1].replace('.git', '')
dst_dir = Path(__file__).parent / repo_name dst_dir = Path(__file__).parent / repo_name