This commit is contained in:
retoor 2025-05-09 08:54:33 +02:00
parent e06776d81d
commit adb59eff68
2 changed files with 4 additions and 3 deletions

View File

@ -33,6 +33,7 @@ dependencies = [
"PyJWT", "PyJWT",
"multiavatar", "multiavatar",
"gitpython", "gitpython",
"uvloop"
] ]
[tool.setuptools.packages.find] [tool.setuptools.packages.find]

View File

@ -382,10 +382,10 @@ class GitApplication(web.Application):
repo_name = req_path repo_name = req_path
if repo_name.endswith('.git'): if repo_name.endswith('.git'):
repo_name = repo_name[:-4] repo_name = repo_name[:-4]
repo_name = repo_name.lstrip('git/') repo_name = repo_name[4:]
repo_dir = repository_path.joinpath(repo_name + '.git') repo_dir = repository_path.joinpath(repo_name + ".git")
logger.info(f"Resolved repo path: {repo_dir}") logger.info(f"Resolved repo path: {repo_dir}")
return repo_dir return repo_dir
async def handle_info_refs(service): async def handle_info_refs(service):
repo_path = await get_repository_path() repo_path = await get_repository_path()