We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3056287 commit c6d4b6fCopy full SHA for c6d4b6f
src/ViewModels/Histories.cs
@@ -242,6 +242,9 @@ public async Task<bool> CheckoutBranchByDecoratorAsync(Models.Decorator decorato
242
243
public async Task CheckoutBranchByCommitAsync(Models.Commit commit)
244
{
245
+ if (commit == null)
246
+ return;
247
+
248
if (commit.IsCurrentHead)
249
return;
250
@@ -265,7 +268,7 @@ public async Task CheckoutBranchByCommitAsync(Models.Commit commit)
265
268
continue;
266
269
267
270
var lb = _repo.Branches.Find(x => x.IsLocal && x.Upstream == rb.FullName);
- if (lb.Ahead.Count == 0)
271
+ if (lb!=null&&lb.Behind.Count>0&&lb.Ahead.Count == 0)
272
273
if (_repo.CanCreatePopup())
274
_repo.ShowPopup(new CheckoutAndFastForward(_repo, lb, rb));
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments