diff options
| author | TheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com> | 2020-12-04 03:06:47 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-04 03:06:47 +0000 |
| commit | 527f408f6a288a7e2f0df3e7bcac183f3d7ca4b9 (patch) | |
| tree | ba887382c1223f330aaa5d8110b05ba337456c84 | |
| parent | 76cad4138219bc57ffc771e1b5eee5437b51aca6 (diff) | |
| parent | adccca366e12a32fd96859d6f279b83a25f02479 (diff) | |
| download | invidious-527f408f6a288a7e2f0df3e7bcac183f3d7ca4b9.tar.gz invidious-527f408f6a288a7e2f0df3e7bcac183f3d7ca4b9.tar.bz2 invidious-527f408f6a288a7e2f0df3e7bcac183f3d7ca4b9.zip | |
Merge pull request #1529 from saltycrys/fix-version
Fix invidious version for old git versions
| -rw-r--r-- | src/invidious.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 767a8748..0e8c2324 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 log -1 --format=%cs | sed s/-/./g`.strip}" }} +CURRENT_VERSION = {{ "#{`git log -1 --format=%ci | date -I -f - | 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 |
