diff --git a/app/src/lib/stores/app-store.ts b/app/src/lib/stores/app-store.ts index e3089f0a87..bb64a33ae2 100644 --- a/app/src/lib/stores/app-store.ts +++ b/app/src/lib/stores/app-store.ts @@ -3060,6 +3060,11 @@ export class AppStore extends TypedBaseStore { const { tip } = branchesState const hasChanges = changesState.workingDirectory.files.length > 0 + // No point in checking out the currently checked out branch. + if (tip.kind === TipState.Valid && tip.branch.name === branch.name) { + return repository + } + let strategy = explicitStrategy ?? this.uncommittedChangesStrategy // The user hasn't been presented with an explicit choice