Skip to content

Commit

Permalink
[v4] Fix getting projects using full namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed Aug 11, 2017
1 parent 279704f commit 72e783d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gitlab/mixins.py
Expand Up @@ -39,6 +39,8 @@ def get(self, id, lazy=False, **kwargs):
GitlabAuthenticationError: If authentication is not correct
GitlabGetError: If the server cannot perform the request
"""
if not isinstance(id, int):
id = id.replace('/', '%2F')
path = '%s/%s' % (self.path, id)
if lazy is True:
return self._obj_cls(self, {self._obj_cls._id_attr: id})
Expand Down

0 comments on commit 72e783d

Please sign in to comment.