The project path is what's shown in the url bar, ex
gitlab.example.com/john/gstreamer -> 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.
continue
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']
print(f"{name}/{branchname}")
return 'user', branch['commit']['id']