summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsaltycrys <73420320+saltycrys@users.noreply.github.com>2020-12-01 13:29:30 +0100
committersaltycrys <73420320+saltycrys@users.noreply.github.com>2020-12-01 13:29:30 +0100
commit2478e67d16395fbd1a94cfd5d7754375bc764f7f (patch)
tree16b09f5ce9c90f8ea48f99f651ed161100587548 /src
parentdd35877edaffc4c6cae141b31449dc7ad50f7bd8 (diff)
downloadinvidious-2478e67d16395fbd1a94cfd5d7754375bc764f7f.tar.gz
invidious-2478e67d16395fbd1a94cfd5d7754375bc764f7f.tar.bz2
invidious-2478e67d16395fbd1a94cfd5d7754375bc764f7f.zip
Switch to date based versioning scheme
Since no new tags are created for releases the version has been frozen for some time, with only the commit hash changing. Versions based on the latest commit date make it much easier to identify them.
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 9c3dffb2..4793a60a 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -64,7 +64,7 @@ HTTP_CHUNK_SIZE = 10485760 # ~10MB
CURRENT_BRANCH = {{ "#{`git branch | sed -n '/* /s///p'`.strip}" }}
CURRENT_COMMIT = {{ "#{`git rev-list HEAD --max-count=1 --abbrev-commit`.strip}" }}
-CURRENT_VERSION = {{ "#{`git describe --tags --abbrev=0`.strip}" }}
+CURRENT_VERSION = {{ "#{`git log -1 --format=%cs | sed s/-/./g`.strip}" }}
# This is used to determine the `?v=` on the end of file URLs (for cache busting). We
# only need to expire modified assets, so we can use this to find the last commit that changes