pinokiod 3.322.0 → 3.323.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/bin/git.js +13 -3
- package/package.json +1 -1
package/kernel/bin/git.js
CHANGED
|
@@ -6,12 +6,12 @@ const path = require("path")
|
|
|
6
6
|
class Git {
|
|
7
7
|
cmd() {
|
|
8
8
|
if (this.kernel.platform === "darwin") {
|
|
9
|
-
return "git git-lfs gh=2.82.1"
|
|
9
|
+
return "git=2.51.0 git-lfs gh=2.82.1"
|
|
10
10
|
} else if (this.kernel.platform === "win32") {
|
|
11
11
|
//return "git git-lfs gh=2.82.1 git-bash"
|
|
12
|
-
return "git git-lfs gh=2.82.1 m2-base"
|
|
12
|
+
return "git=2.51.0 git-lfs gh=2.82.1 m2-base"
|
|
13
13
|
} else {
|
|
14
|
-
return "git git-lfs gh=2.82.1"
|
|
14
|
+
return "git=2.51.0 git-lfs gh=2.82.1"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
async install(req, ondata) {
|
|
@@ -24,6 +24,16 @@ class Git {
|
|
|
24
24
|
}, ondata)
|
|
25
25
|
}
|
|
26
26
|
async installed() {
|
|
27
|
+
let version = this.kernel.bin.installed.conda_versions.git
|
|
28
|
+
console.log("git version", version)
|
|
29
|
+
let coerced = semver.coerce(version)
|
|
30
|
+
console.log("git coerced", coerced)
|
|
31
|
+
let requirement = ">=2.51.0"
|
|
32
|
+
let satisfied = semver.satisfies(coerced, requirement)
|
|
33
|
+
console.log("git version satisfied?", satisfied)
|
|
34
|
+
if (!satisfied) {
|
|
35
|
+
return false
|
|
36
|
+
}
|
|
27
37
|
if (this.kernel.platform === "darwin") {
|
|
28
38
|
return this.kernel.bin.installed.conda && this.kernel.bin.installed.conda.has("git") && this.kernel.bin.installed.conda.has("gh")
|
|
29
39
|
} else if (this.kernel.platform === "win32") {
|