When building against a tagged commit (e.g., https://github.com/bitcoin/bitcoin/releases/tag/v22.0rc2) the version info should pull a tag rather a git commit hash.
Compare:
0$ bin/bitcoind -version
1Bitcoin Core version v0.21.0rc2
2Copyright (C) 2009-2020 The Bitcoin Core developers
3
4Please contribute if you find Bitcoin Core useful. Visit
5<https://bitcoincore.org/> for further information about the software.
6The source code is available from <https://github.com/bitcoin/bitcoin>.
7
8This is experimental software.
9Distributed under the MIT software license, see the accompanying file COPYING
10or <https://opensource.org/licenses/MIT>
and
0$ bin/bitcoind -version
1Bitcoin Core version v22.0.0-g873fbc745d037ad43570f81e58334c397bc95477