@@ -101,7 +101,7 @@ export async function cloneRepo(
101101 const repoGit = simpleGit ( { baseDir : clonePath , progress : progressHandler } ) ;
102102 await repoGit . raw ( [ "config" , "gc.auto" , "0" ] ) ;
103103 log ?.( `${ config . name } : Setting sparse checkout paths: ${ config . sparse ! . join ( ", " ) } ` , "debug" ) ;
104- await repoGit . raw ( [ "sparse-checkout" , "set" , ...config . sparse ! ] ) ;
104+ await repoGit . raw ( [ "sparse-checkout" , "set" , "--skip-checks" , ...config . sparse ! ] ) ;
105105 log ?.( `${ config . name } : Fetching commit ${ config . commit . substring ( 0 , 7 ) } ` , "info" ) ;
106106 await repoGit . fetch ( [ "origin" , config . commit ] ) ;
107107 log ?.( `${ config . name } : Checking out commit` , "debug" ) ;
@@ -116,7 +116,7 @@ export async function cloneRepo(
116116 const repoGit = simpleGit ( { baseDir : clonePath , progress : progressHandler } ) ;
117117 await repoGit . raw ( [ "config" , "gc.auto" , "0" ] ) ;
118118 log ?.( `${ config . name } : Setting sparse checkout paths: ${ config . sparse ! . join ( ", " ) } ` , "debug" ) ;
119- await repoGit . raw ( [ "sparse-checkout" , "set" , ...config . sparse ! ] ) ;
119+ await repoGit . raw ( [ "sparse-checkout" , "set" , "--skip-checks" , ...config . sparse ! ] ) ;
120120 log ?.( `${ config . name } : Fetching tag ${ config . tag } ` , "info" ) ;
121121 await repoGit . fetch ( [ "--depth=1" , "origin" , `refs/tags/${ config . tag } :refs/tags/${ config . tag } ` ] ) ;
122122 log ?.( `${ config . name } : Checking out tag` , "debug" ) ;
@@ -132,7 +132,7 @@ export async function cloneRepo(
132132 const repoGit = simpleGit ( { baseDir : clonePath , progress : progressHandler } ) ;
133133 await repoGit . raw ( [ "config" , "gc.auto" , "0" ] ) ;
134134 log ?.( `${ config . name } : Setting sparse checkout paths: ${ config . sparse ! . join ( ", " ) } ` , "debug" ) ;
135- await repoGit . raw ( [ "sparse-checkout" , "set" , ...config . sparse ! ] ) ;
135+ await repoGit . raw ( [ "sparse-checkout" , "set" , "--skip-checks" , ...config . sparse ! ] ) ;
136136 }
137137 } else {
138138 // Clone for smaller repos
0 commit comments