diff --git a/TGServerService/ServerInstance/Repository.cs b/TGServerService/ServerInstance/Repository.cs index 682b239346..0543742292 100644 --- a/TGServerService/ServerInstance/Repository.cs +++ b/TGServerService/ServerInstance/Repository.cs @@ -521,6 +521,11 @@ namespace TGServerService else if (result != null) return result; } + + //if this is a tracked branch, we need to reset to remote first and delete the PR list + ResetNoLock(Repo.Head.TrackedBranch ?? Repo.Head); + DeletePRList(); + var Opts = new CheckoutOptions() { CheckoutModifiers = CheckoutModifiers.Force,