File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const examples = {
1616
1717export default {
1818 defaults : { dirName : "my-stackbit-site" , starter : starters [ 0 ] } ,
19+ minGitVersion : "2.25.0" ,
1920 examples,
2021 starters,
2122} ;
Original file line number Diff line number Diff line change @@ -140,10 +140,9 @@ async function cloneExample() {
140140 ) ;
141141 process . exit ( 1 ) ;
142142 }
143- const minGitVersion = "2.25.0" ;
144- if ( compareVersion ( gitVersionMatch [ 0 ] , minGitVersion ) < 0 ) {
143+ if ( compareVersion ( gitVersionMatch [ 0 ] , config . minGitVersion ) < 0 ) {
145144 console . error (
146- `Starting from an example requires git version ${ minGitVersion } or later.` ,
145+ `Starting from an example requires git version ${ config . minGitVersion } or later.` ,
147146 "Please upgrade"
148147 ) ;
149148 process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments