Skip to content

Commit

Permalink
squashme: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olevski committed Oct 17, 2023
1 parent acfa514 commit 355ad3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion renku/core/util/git.py
Expand Up @@ -823,7 +823,7 @@ def clone(branch, depth):
try:
# NOTE: Try to clone, assuming checkout_revision is a branch or a tag (if it is set)
repository = clone(branch=checkout_revision, depth=depth)
except errors.GitCommandError as err:
except errors.GitCommandError:
if not checkout_revision:
if raise_git_except:
raise
Expand Down
1 change: 0 additions & 1 deletion renku/ui/service/cache/models/project.py
Expand Up @@ -26,7 +26,6 @@

from renku.ui.service.cache.base import BaseCache
from renku.ui.service.config import CACHE_PROJECTS_PATH
from renku.ui.service.utils import normalize_git_url

MAX_CONCURRENT_PROJECT_REQUESTS = 10
LOCK_TIMEOUT = 15
Expand Down
3 changes: 2 additions & 1 deletion renku/ui/service/cache/serializers/project.py
Expand Up @@ -45,7 +45,8 @@ class ProjectSchema(CreationSchema, AccessSchema, MandatoryUserSchema):
@post_load
def make_project(self, data, **options):
"""Construct project object."""
data["git_url"] = normalize_git_url(data["git_url"])
if data.get("git_url"):
data["git_url"] = normalize_git_url(data["git_url"])
data["name"] = normalize_git_url(data["name"])
data["slug"] = normalize_git_url(data["slug"])
return Project(**data)
Expand Down

0 comments on commit 355ad3b

Please sign in to comment.