mtkennerly / dunamai

Dynamic versioning library and CLI
https://dunamai.readthedocs.io/en/latest
MIT License
312 stars 24 forks source link

unrecognized argument: --decorate-refs=refs/tags/* #11

Closed fredrikaverpil closed 3 years ago

fredrikaverpil commented 3 years ago

We just recently started seeing this error and I have not yet concluded that it's because of the recent dunamai release, but I suspect it can be related so I am just quickly writing this ticket here:

$ poetry install -v --no-root

...

[RuntimeError]
The command 'git log --simplify-by-decoration --topo-order --decorate=full "--decorate-refs=refs/tags/*" HEAD "--format=%H%d"' returned code 128. Output:
fatal: unrecognized argument: --decorate-refs=refs/tags/*

This is with:

mtkennerly commented 3 years ago

Thank you for letting me know. That's definitely from the new version, so I'll release a fix ASAP. (I really need to set up Git 2.7.0 for testing in CI to keep this from happening.)

mtkennerly commented 3 years ago

I've just released v1.5.2 to avoid --decorate-refs. Unfortunately, I wasn't yet able to add Git 2.7.0 to the testing, since (I think) it requires an older OpenSSL, which is giving me some trouble. If you see any further issues with the new release, please let me know.

fredrikaverpil commented 3 years ago

Great, thanks 👍