Skip to content

Commit 3932b44

Browse files
author
Ralf Grubenmann
committed
fix clone in repo cache
1 parent 130c21d commit 3932b44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

renku/ui/service/gateways/repository_cache.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ def _clone_project(
132132

133133
if parsed_git_url.owner is None or parsed_git_url.name is None:
134134
raise ValidationError("Invalid `git_url`, missing owner or repository", "git_url")
135+
if branch == "":
136+
branch = None
137+
if commit_sha == "":
138+
commit_sha = None
135139

136140
project_data = {
137141
"project_id": uuid.uuid4().hex,

0 commit comments

Comments
 (0)