[backend/configuration] Allow accessing full commit hash when available

This commit is contained in:
Laura Hausmann 2024-05-24 22:47:36 +02:00
parent 816e912078
commit 9fa414d738
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -17,6 +17,7 @@ public sealed class Config
{
public readonly string Version;
public readonly string Codename;
public readonly string? CommitHash;
public InstanceSection()
{
@ -41,6 +42,7 @@ public sealed class Config
{
split[1] = split[1][..Math.Min(split[1].Length, 10)];
Version = string.Join('+', split);
CommitHash = split[1];
}
else
{