Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 4711503

Browse files
committed
Fix assertion error.
When `CheckoutMode == Push` and has uncommitted changes.
1 parent 059a8db commit 4711503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.App/ViewModels/PullRequestDetailViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public async Task Load(IPullRequestModel pullRequest)
308308

309309
var clean = await pullRequestsService.IsCleanForCheckout(repository);
310310

311-
CheckoutDisabledMessage = (!clean && CheckoutMode != CheckoutMode.UpToDate) ?
311+
CheckoutDisabledMessage = (!clean && CheckoutMode != CheckoutMode.UpToDate && CheckoutMode != CheckoutMode.Push) ?
312312
$"Cannot {GetCheckoutModeDescription(CheckoutMode)} as your working directory has uncommitted changes." :
313313
null;
314314

0 commit comments

Comments
 (0)