diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-08-11 15:43:46 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-08-11 15:43:46 +0200 |
commit | 72e783de6b6e93e24dd93f5ac28383c2893bd7a6 (patch) | |
tree | 57d92cacc600f3afbe39b5cf9e328380ad03f5a5 /gitlab/mixins.py | |
parent | 279704fb41f74bf797bf2db5be0ed5a8d7889366 (diff) | |
download | gitlab-72e783de6b6e93e24dd93f5ac28383c2893bd7a6.tar.gz |
[v4] Fix getting projects using full namespace
Diffstat (limited to 'gitlab/mixins.py')
-rw-r--r-- | gitlab/mixins.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py index 9dd05af..e01691a 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -39,6 +39,8 @@ class GetMixin(object): 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}) |