Verified Commit 7ede52d7 authored by Jordan Petridіs's avatar Jordan Petridіs 🌱
Browse files Use the project path not the name

The project path is what's shown in the url bar, ex -> path == gstreamer

The project name is defined in project settings and its just.
Its more common to change the name of a fork than its path.
parent 61c5d7b6
......@@ -68,12 +68,12 @@ def find_repository_sha(module: str, branchname: str) -> Tuple[str, str]:
id = project['id']
if project['namespace']['name'] in useful_namespaces:
if project['namespace']['name'] == user_namespace:
if project['namespace']['path'] in useful_namespaces:
if project['namespace']['path'] == user_namespace:
# If we have a branch with same name, use it.
for branch in request(f"{id}/repository/branches"):
if branch['name'] == branchname:
name = project['namespace']['name']
name = project['namespace']['path']
return 'user', branch['commit']['id']
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment