mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 05:56:58 +01:00
Also while testmerging
This commit is contained in:
@@ -377,9 +377,9 @@ namespace TGServerService
|
||||
return error;
|
||||
}
|
||||
var res = MergeBranch(originBranch.FriendlyName);
|
||||
UpdateSubmodules();
|
||||
if (res != null)
|
||||
throw new Exception(res);
|
||||
UpdateSubmodules();
|
||||
TGServerService.WriteInfo("Repo merge updated to " + originBranch.Tip.Sha, TGServerService.EventID.RepoMergeUpdate);
|
||||
return null;
|
||||
}
|
||||
@@ -569,6 +569,16 @@ namespace TGServerService
|
||||
//so we'll know if this fails
|
||||
var Result = MergeBranch(LocalBranchName);
|
||||
|
||||
if (Result == null)
|
||||
try
|
||||
{
|
||||
UpdateSubmodules();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Result = e.ToString();
|
||||
}
|
||||
|
||||
if (Result == null)
|
||||
{
|
||||
TGServerService.WriteInfo(String.Format("Merged pull request #{0}", PRNumber), TGServerService.EventID.RepoPRMerge);
|
||||
|
||||
Reference in New Issue
Block a user