Skip to content

add_progress does this version check really work? #449

Closed

Description

@barry-scott
    v = git.version_info
    if v[0] > 1 or v[1] > 7 or v[2] > 0 or v[3] > 3:
        kwargs['progress'] = True

I have stared at this and I cannot see what the version check is attempted.
Why not simple something like: git_version_info > (1,7,0,3)?
Is that what this is attempting to do?

Activity

  1. added this to the v2.0.4 - Bugfixes milestone on May 28, 2016
  2. self-assigned this
    on May 28, 2016
  3. Byron commented on May 28, 2016

    @Byron
    Member

    The logic on this check seems quite broken (i.e. inverted), as it would also kick in if the patch level for some reason is greater than 3. Thus is doesn't make much sense and probably attempts to do what you are suggesting.

    Also I did a bit of digging, and found this commit 55eb3de to be the on introducing it.

    It looks like a fix is trivial, would you like to submit a PR for it ?

  4. barry-scott commented on May 28, 2016

    @barry-scott
    ContributorAuthor

    Sure. But since I do not trust I understand the test being made can you confirm what
    version is being checked for? The commit log does not explain.

  5. added a commit that references this issue on Jan 24, 2026
    8df3dd9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions