mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 15:07:03 +01:00
Merge pull request #1363 from tgstation/Cyberboss-patch-1
Fix revision command using local revision
This commit is contained in:
@@ -19,7 +19,7 @@ namespace Tgstation.Server.Host.Components.Chat.Commands
|
||||
public string Name => "revision";
|
||||
|
||||
/// <inheritdoc />
|
||||
public string HelpText => "Display live commit sha. Add --repo to view repository revision";
|
||||
public string HelpText => "Display live origin commit sha. Add --repo to view repository revision";
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool AdminOnly => false;
|
||||
@@ -60,7 +60,7 @@ namespace Tgstation.Server.Host.Components.Chat.Commands
|
||||
{
|
||||
if (watchdog.Status == WatchdogStatus.Offline)
|
||||
return "Server offline!";
|
||||
result = watchdog.ActiveCompileJob?.RevisionInformation.CommitSha;
|
||||
result = watchdog.ActiveCompileJob?.RevisionInformation.OriginCommitSha;
|
||||
}
|
||||
|
||||
return String.Format(CultureInfo.InvariantCulture, "^{0}", result);
|
||||
|
||||
Reference in New Issue
Block a user