Closed ianrobrien closed 2 years ago
Indeed looks like a bug! Thanks for reporting.
Fix is likely a one-liner, changing
to
commit_timestamp = git.log(
realpath, date="unix", format="%at", diff_filter="A", no_show_signature=True
)
Would you like to provide a PR or shall I pick it up?
Thanks for the quick reply! It would be better for you to pick it up as I haven't even cloned the repository yet. I don't mind making a PR if you are busy or want help but I will have to do it tomorrow. Thanks again!
I made a PR for this - one of the tests is failing though but I don't think it's related to the change here. If you could run the changes on your machine and see then maybe it isn't a problem.
But otherwise I can take a look if this is a new issue. (master
branch wouldn't pass the tests either)
Awesome thnx I'll have a look later this week!
Hello! I ran into an issue where
get_git_commit_timestamp
will fail if I have the following option set in.gitconfig
The error I get is:
It looks like the function could either run a
git log
without signaturegit log --no-show-signature
or have logic to handle a signature.