forked from gitea/gitea

Backport #27916 by @sebastian-sauer Show the correct sha when viewing a single commit.  Co-authored-by: sebastian-sauer <sauer.sebastian@gmail.com>