Skip to content

Commit d210fc7

Browse files
gibchikafao-alex
authored andcommitted
[HWORKS-2365] Url encode branch (#661) (#682)
* [HWORKS-2365] Url encode branch * Safe
1 parent c2a471f commit d210fc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/hopsworks_common/core/git_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import json
1818
import logging
1919
from typing import List, Optional, Union
20+
from urllib.parse import quote
2021

2122
from hopsworks_common import (
2223
client,
@@ -537,7 +538,7 @@ def _get_commits(self, repo_id, branch: str):
537538
"repository",
538539
str(repo_id),
539540
"branch",
540-
branch,
541+
quote(branch, safe=""),
541542
"commit",
542543
]
543544

0 commit comments

Comments
 (0)