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.