Skip to content

Commit

Permalink
fix clone in repo cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf Grubenmann committed Nov 22, 2023
1 parent 130c21d commit 3932b44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions renku/ui/service/gateways/repository_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def _clone_project(

if parsed_git_url.owner is None or parsed_git_url.name is None:
raise ValidationError("Invalid `git_url`, missing owner or repository", "git_url")
if branch == "":
branch = None
if commit_sha == "":
commit_sha = None

project_data = {
"project_id": uuid.uuid4().hex,
Expand Down

0 comments on commit 3932b44

Please sign in to comment.