We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3352dde commit 94319caCopy full SHA for 94319ca
2 files changed
config.js
@@ -16,6 +16,7 @@ const examples = {
16
17
export default {
18
defaults: { dirName: "my-stackbit-site", starter: starters[0] },
19
+ minGitVersion: "2.25.0",
20
examples,
21
starters,
22
};
index.js
@@ -140,10 +140,9 @@ async function cloneExample() {
140
);
141
process.exit(1);
142
}
143
- const minGitVersion = "2.25.0";
144
- if (compareVersion(gitVersionMatch[0], minGitVersion) < 0) {
+ if (compareVersion(gitVersionMatch[0], config.minGitVersion) < 0) {
145
console.error(
146
- `Starting from an example requires git version ${minGitVersion} or later.`,
+ `Starting from an example requires git version ${config.minGitVersion} or later.`,
147
"Please upgrade"
148
149
0 commit comments