Skip to content

store.py assumes that "master" is the code branch to work on #56

@rhaas80

Description

@rhaas80

Right now

tests/store.py

Line 107 in b8c4371

def store_commit_id(version):
still assumes that the branch we are working on is "master".

This will not always be the case (eg "main" or "trunk" could be used or even "devel").

Instead the HEAD commit should be obtained from (the pygit2 equivalent) of

id = os.popen(f"git --git-dir {REPO}/.git rev-parse HEAD").read().strip())
with open(dst,"w") as fh:
    print(id, file=fh)

Metadata

Metadata

Assignees

No one assigned

    Labels

    minor bugsomething is wrong but does not directly affect main functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions