@@ -27,7 +27,7 @@ import {
2727 writeAgentInstructions ,
2828} from '../utils/agent.ts' ;
2929import { detectExistingEditors , selectEditors , writeEditorConfigs } from '../utils/editor.ts' ;
30- import { initGitRepository } from '../utils/git.ts' ;
30+ import { createInitialCommit , initGitRepository } from '../utils/git.ts' ;
3131import { renderCliDoc } from '../utils/help.ts' ;
3232import { displayRelative } from '../utils/path.ts' ;
3333import {
@@ -831,6 +831,10 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
831831 } ) ;
832832 updateCreateProgress ( 'Formatting code' ) ;
833833 await runViteFmt ( fullPath , options . interactive , undefined , { silent : compactOutput } ) ;
834+ if ( shouldSetupGit ) {
835+ updateCreateProgress ( 'Creating initial commit' ) ;
836+ await createInitialCommit ( fullPath ) ;
837+ }
834838 clearCreateProgress ( ) ;
835839 showCreateSummary ( {
836840 description : describeScaffold ( selectedTemplateName , selectedTemplateArgs ) ,
@@ -1033,7 +1037,9 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
10331037 silent : compactOutput ,
10341038 } ) ;
10351039 if ( shouldSetupGit ) {
1040+ updateCreateProgress ( 'Creating initial commit' ) ;
10361041 await initGitRepository ( workspaceInfo . rootDir ) ;
1042+ await createInitialCommit ( workspaceInfo . rootDir ) ;
10371043 }
10381044 } else {
10391045 if ( shouldMigrateLintFmtTools ) {
@@ -1059,6 +1065,10 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
10591065 } ) ;
10601066 updateCreateProgress ( 'Formatting code' ) ;
10611067 await runViteFmt ( fullPath , options . interactive , undefined , { silent : compactOutput } ) ;
1068+ if ( shouldSetupGit ) {
1069+ updateCreateProgress ( 'Creating initial commit' ) ;
1070+ await createInitialCommit ( fullPath ) ;
1071+ }
10621072 }
10631073
10641074 clearCreateProgress ( ) ;
0 commit comments