EinsteinToolkit / tests

Integration tests of the Einstein Toolkit
https://einsteintoolkit.github.io/tests
Other
1 stars 2 forks source link

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

Open rhaas80 opened 1 year ago

rhaas80 commented 1 year ago

Right now https://github.com/EinsteinToolkit/tests/blob/b8c43710e9906be3eacd68135d5571c8fce2b309/store.py#L107 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)