4 ms·
What if the code calls git rev-parse --abbrev-ref @{upstream} when the server starts and then provides this link in the web pages? The link will be updated a
by dalf 5y ago
What if the code calls
git rev-parse --abbrev-ref @{upstream}
when the server starts and then provides this link in the web pages?
The link will be updated automatically in the forks.
---
About the version, call "git show -s --format='%cs-%h'" to get the current commit.
- dalf 5y agoFor what it's worth, this is what is done for SearXNG (AGPL 3 license, rolling release): https://github.com/searxng/searxng/blob/master/searx/version.py https://github.com/searxng/searxng/blob/master/searx/version... It doesn't prevent people to hide / change the information, but at least by default it works even in a fork.