Skip to content

Commit 72e783d

Browse files
author
Gauvain Pocentek
committed
[v4] Fix getting projects using full namespace
1 parent 279704f commit 72e783d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitlab/mixins.py

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def get(self, id, lazy=False, **kwargs):
3939
GitlabAuthenticationError: If authentication is not correct
4040
GitlabGetError: If the server cannot perform the request
4141
"""
42+
if not isinstance(id, int):
43+
id = id.replace('/', '%2F')
4244
path = '%s/%s' % (self.path, id)
4345
if lazy is True:
4446
return self._obj_cls(self, {self._obj_cls._id_attr: id})

0 commit comments

Comments
 (0)