Skip to content
Snippets Groups Projects
Commit 6cd7f237 authored by nimrod's avatar nimrod
Browse files

git namespace-backup updates.

python-gitlab updates renamed somethings, fix accordingly.
parent fc24743c
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ import os.path
import pathlib
import sys
import gitlab.exception # pylint: disable=import-error
import gitlab.exceptions # pylint: disable=import-error
import sh # pylint: disable=import-error
from sh.contrib import git # pylint: disable=import-error
......@@ -76,9 +76,7 @@ if __name__ == "__main__":
)
for repo in list_repositories(args.namespace):
try:
project = conn.projects.get_project(
f"{group.path}/{repo.name}"
)
project = conn.projects.get(f"{group.path}/{repo.name}")
print(
(
f"Using existing project id: {project.id},"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment