- Notifications
You must be signed in to change notification settings - Fork673
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Description of the problem, including code/CLI snippetI want to get a commit list according to a specific folder in a branch, but I can't do this with the python module and I get an error. gitlab_api = Gitlab(url=args.gitlab_url, private_token=args.gitlab_token)gitlab_project = gitlab_api.projects.get(id=args.gitlab_project_id, all=True)gitlab_project.commits.list(ref_name='main', path='deployemnt/v1.31') when I run Rest API I get results and no errors, /api/v4/projects/4021212/repository/commits?ref_name=main&path=deployemnt/v1.31 Expected BehaviorActual BehaviorDetails
|
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 2 replies
-
Why Also which one of the three lines of your example has the error? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I removed all=true parameter then I tried again but nothing has changed, I still get the error. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Ah!
So do it as suggested in:https://python-gitlab.readthedocs.io/en/main/api-usage.html#conflicting-parameters
|
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
@JohnVillalovos I removed all=true parameter then I tried again but nothing has changed, I still get the error. |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #3100 on January 24, 2025 15:45.