Skip to content

taf repo status: AttributeError when checking branches containing commit #699

@n-dusan

Description

@n-dusan

taf repo status crashes with AttributeError: 'str' object has no attribute 'hash' when checking target repositories status.

Steps to reproduce:

taf repo status --path <path-to-auth>


**Error:**

File "C:\Users\nikol\Envs\olldev\lib\site-packages\taf\git.py", line 518, in branches_containing_commit
local_branches = list(repo.branches.local.with_commit(commit.hash))
AttributeError: 'str' object has no attribute 'hash'

Root cause:

In taf/git.py:518, the code expects commit to be an object with a hash attribute, but receives a string instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions