Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Parse tag fail for some tag info. #503

Closed
Assignees
Byron
@hwchiu

Description

@hwchiu

Environment

  • Git: 2.9.1
  • GitPython: master branch (2016-08-26)
  • Target project:

Status

  • Use the GitPython to parse the tag info of openvpn.
  • The tag v2.2-beta1 will cause the wrong data structure
    • The repo.tags[xx] should return the TagReference object.
    • The repo.tags[xx].commit should return the Commit object.
    • when the tag v2.2-beta1 be loaded
      • The repo.tags[xx].commit still be the TagObject object rather than Commit object.
  • Result of the 'git show v2.2-beta1'
  • Reason
    • Maybe there are two "tag v2.2-beta1" in the show info will cause the parse error ?

My Code

importgitrepo=git.Repo.clone_from('....' ,'...')test=sorted(repo.tags,key=lambdat:t.commit.committed_date)Error:File"/usr/local/lib/python2.7/dist-packages/gitdb/util.py",line239,in__getattr__returnobject.__getattribute__(self,attr)AttributeError:'TagObject'objecthasnoattribute'committed_date'

Is it a bug ? or Do you have any suggestion I can do in my application to get all tag by date?

Thanks.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2026 Movatter.jp