diff --git a/coredis/_version.py b/coredis/_version.py index 1f45cef1..cd12c6ea 100644 --- a/coredis/_version.py +++ b/coredis/_version.py @@ -26,7 +26,7 @@ def get_keywords(): # setup.py/versioneer.py will grep for the variable names, so they must # each be defined on a line of their own. _version.py will just call # get_keywords(). - git_refnames = "$Format:%d$" + git_refnames = "$Format:%(describe:exclude=HEAD|main:tags=true)$" git_full = "$Format:%H$" git_date = "$Format:%ci$" keywords = {"refnames": git_refnames, "full": git_full, "date": git_date}