diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 5185a6155b8..26411f337b8 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -381,7 +381,7 @@ export class CommandCenter { @CommandCenter.CatchErrors async checkout(): Promise { const config = workspace.getConfiguration('git'); - const checkoutType = config.get('checkoutType'); + const checkoutType = config.get('checkoutType') || 'all'; const includeTags = checkoutType === 'all' || checkoutType === 'tags'; const includeRemotes = checkoutType === 'all' || checkoutType === 'remote';