mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 04:01:40 +01:00
Merge pull request #1282 from return42/fix-git-version
[fix] version.py: git format '%cs' is not downward compatible
This commit is contained in:
commit
0ce9d9e893
@ -58,7 +58,7 @@ def get_git_url_and_branch():
|
||||
|
||||
|
||||
def get_git_version():
|
||||
git_commit_date_hash = subprocess_run(r"git show -s --format='%cs-%h'").replace("-", ".", 2)
|
||||
git_commit_date_hash = subprocess_run(r"git show -s --date='format:%Y.%m.%d' --format='%cd-%h'")
|
||||
tag_version = git_version = git_commit_date_hash
|
||||
|
||||
# add "-dirty" suffix if there are uncommited changes except searx/settings.yml
|
||||
|
Loading…
Reference in New Issue
Block a user