← 返回首页
project.commits.list does not returns commits from all branches · Issue #3401 · python-gitlab/python-gitlab · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

project.commits.list does not returns commits from all branches #3401

New issue
New issue

Description

Description of the problem, including code/CLI snippet

Method project.commits.list(get_all=True) does not return commits from all branches.
I tried it with parameters as weel, but with no success:

commits = project.commits.list(get_all=True, since='2026-05-17 00:00:00', until='2026-05-18 22:20:00')

It returns only commits from default "master" branch.
When I call it to pull with specified name, then it works:
commits = project.commits.list(get_all=True, ref_name='tst')

I am connecting to our local gitlab server and already tried its API - "projects/12345/repository/commits?all=true" it returns all commits from all branches.

Expected Behavior

project.commits.list(get_all=True) returns all commits from all branches

Actual Behavior

project.commits.list(get_all=True) returns commits only from default "master" branch

Specifications

  • python-gitlab version: 8.3.0
  • Gitlab server version (or gitlab.com):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Footer

      © 2026 GitHub, Inc.