pinokiod 3.6.43 → 3.6.44
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 +2 -2
- package/kernel/bin/index.js +8 -0
- package/kernel/gitconfig_template +7 -0
- package/package.json +1 -1
package/kernel/bin/git.js
CHANGED
|
@@ -35,12 +35,12 @@ class Git {
|
|
|
35
35
|
await this.kernel.bin.exec({ message: "conda remove git" }, ondata)
|
|
36
36
|
}
|
|
37
37
|
env() {
|
|
38
|
-
if (this.kernel.platform === 'win32') {
|
|
38
|
+
// if (this.kernel.platform === 'win32') {
|
|
39
39
|
let gitconfig_path = path.resolve(this.kernel.homedir, "gitconfig")
|
|
40
40
|
return {
|
|
41
41
|
GIT_CONFIG_GLOBAL: gitconfig_path
|
|
42
42
|
}
|
|
43
|
-
}
|
|
43
|
+
// }
|
|
44
44
|
}
|
|
45
45
|
async requires() {
|
|
46
46
|
return ["conda"]
|
package/kernel/bin/index.js
CHANGED
|
@@ -278,6 +278,14 @@ class Bin {
|
|
|
278
278
|
// pipconfig_path
|
|
279
279
|
// )
|
|
280
280
|
}
|
|
281
|
+
|
|
282
|
+
// add gitconfig => support git lfs, long path, etc.
|
|
283
|
+
let gitconfig_path = path.resolve(this.kernel.homedir, "gitconfig")
|
|
284
|
+
// check if gitconfig exists
|
|
285
|
+
await fs.promises.copyFile(
|
|
286
|
+
path.resolve(__dirname, "..", "gitconfig_template"),
|
|
287
|
+
gitconfig_path
|
|
288
|
+
)
|
|
281
289
|
}
|
|
282
290
|
|
|
283
291
|
|