[backend/configuration] Allow accessing full commit hash when available
This commit is contained in:
parent
816e912078
commit
9fa414d738
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue