Right now
|
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)
Right now
tests/store.py
Line 107 in b8c4371
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