diff --git a/pyproject.toml b/pyproject.toml index 1a5ac0c..b6f1688 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,7 @@ dependencies = [ "PyJWT", "multiavatar", "gitpython", + "uvloop" ] [tool.setuptools.packages.find] diff --git a/src/snek/sgit.py b/src/snek/sgit.py index 6955288..74dc884 100644 --- a/src/snek/sgit.py +++ b/src/snek/sgit.py @@ -382,10 +382,10 @@ class GitApplication(web.Application): repo_name = req_path if repo_name.endswith('.git'): repo_name = repo_name[:-4] - repo_name = repo_name.lstrip('git/') - repo_dir = repository_path.joinpath(repo_name + '.git') + repo_name = repo_name[4:] + repo_dir = repository_path.joinpath(repo_name + ".git") logger.info(f"Resolved repo path: {repo_dir}") - return repo_dir + return repo_dir async def handle_info_refs(service): repo_path = await get_repository_path()