Also while testmerging

This commit is contained in:
Cyberboss
2017-09-06 14:01:59 -04:00
parent a4ef3e1bf5
commit 51884104aa
+11 -1
View File
@@ -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);