Commit b3bd48e1 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

typo

parent 3ff09cc6
Pipeline #15357 failed with stage
in 1 minute and 1 second
...@@ -92,7 +92,7 @@ async def pull_request(request: HttpRequest, rep: str) -> HttpResponse: ...@@ -92,7 +92,7 @@ async def pull_request(request: HttpRequest, rep: str) -> HttpResponse:
# Create a gitlab remote if it doesn't exist # Create a gitlab remote if it doesn't exist
gl_remote_name = f'gitlab/{namespace.slug}' gl_remote_name = f'gitlab/{namespace.slug}'
if gl_remote_name not in git_repo.remotes: if gl_remote_name not in git_repo.remotes:
url = awaint sync_to_async(project.remote_url_gitlab)() url = await sync_to_async(project.remote_url_gitlab)()
await sync_to_async(git_repo.create_remote)(gl_remote_name, url=url) await sync_to_async(git_repo.create_remote)(gl_remote_name, url=url)
# Push the changes to gitlab # Push the changes to gitlab
...@@ -151,7 +151,7 @@ async def push(request: HttpRequest, source: SOURCES, rep: str) -> HttpResponse: ...@@ -151,7 +151,7 @@ async def push(request: HttpRequest, source: SOURCES, rep: str) -> HttpResponse:
if gl_remote_name in git_repo.remotes: if gl_remote_name in git_repo.remotes:
gl_remote = await sync_to_async(git_repo.remote)(gl_remote_name) gl_remote = await sync_to_async(git_repo.remote)(gl_remote_name)
else: else:
url = awaint sync_to_async(project.remote_url_gitlab)() url = await sync_to_async(project.remote_url_gitlab)()
gl_remote = await sync_to_async(git_repo.create_remote)(gl_remote_name, url=url) gl_remote = await sync_to_async(git_repo.create_remote)(gl_remote_name, url=url)
gl_remote.fetch() gl_remote.fetch()
...@@ -159,7 +159,7 @@ async def push(request: HttpRequest, source: SOURCES, rep: str) -> HttpResponse: ...@@ -159,7 +159,7 @@ async def push(request: HttpRequest, source: SOURCES, rep: str) -> HttpResponse:
if gh_remote_name in git_repo.remotes: if gh_remote_name in git_repo.remotes:
gh_remote = await sync_to_async(git_repo.remote)(gh_remote_name) gh_remote = await sync_to_async(git_repo.remote)(gh_remote_name)
else: else:
url = awaint sync_to_async(project.remote_url_github)() url = await sync_to_async(project.remote_url_github)()
gh_remote = await sync_to_async(git_repo.create_remote)(gh_remote_name, url=url) gh_remote = await sync_to_async(git_repo.create_remote)(gh_remote_name, url=url)
gh_remote.fetch() gh_remote.fetch()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment