Adjust clone job message

This commit is contained in:
Jordan Brown
2021-02-25 17:48:17 -05:00
parent c632139cd4
commit 95d178d0fd
@@ -186,7 +186,13 @@ namespace Tgstation.Server.Host.Controllers
var job = new Job
{
Description = String.Format(CultureInfo.InvariantCulture, "Clone branch {1} of repository {0}", origin, cloneBranch ?? "master"),
Description = String.Format(
CultureInfo.InvariantCulture,
"Clone{1} repository {0}",
origin,
cloneBranch != null
? $"\"{cloneBranch}\" branch of"
: String.Empty),
StartedBy = AuthenticationContext.User,
CancelRightsType = RightsType.Repository,
CancelRight = (ulong)RepositoryRights.CancelClone,