cob-cli 2.46.0-beta.8 → 2.46.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/lib/commands/init.js +10 -1
- package/lib/commands/test.js +1 -1
- package/package.json +1 -1
package/lib/commands/init.js
CHANGED
|
@@ -71,7 +71,16 @@ async function validCobServer(server) {
|
|
|
71
71
|
/* ************************************ */
|
|
72
72
|
async function projectExistsInGitAccount(projectName, repoaccount) {
|
|
73
73
|
try {
|
|
74
|
-
|
|
74
|
+
let cloneConfs = []
|
|
75
|
+
if(process.platform === 'win32'){
|
|
76
|
+
// on windows we force the usage of lf as line-endings
|
|
77
|
+
// so that rsync doesn't think all files have changed
|
|
78
|
+
cloneConfs = [
|
|
79
|
+
'--config', 'core.autocrlf=input',
|
|
80
|
+
'--config', 'core.eol=lf'
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
await git().clone(repoaccount + projectName, cloneConfs);
|
|
75
84
|
return true;
|
|
76
85
|
} catch (e) {
|
|
77
86
|
return false
|
package/lib/commands/test.js
CHANGED
|
@@ -37,7 +37,7 @@ async function test (args) {
|
|
|
37
37
|
} finally {
|
|
38
38
|
restoreChanges && await restoreChanges()
|
|
39
39
|
cmdEnv && await cmdEnv.unApplyCurrentCommandEnvironmentChanges() // Repõe as configurações
|
|
40
|
-
await spawned.stop();
|
|
40
|
+
spawned && await spawned.stop();
|
|
41
41
|
// Dá tempo aos subprocessos para morrer (acho que já não é preciso)
|
|
42
42
|
setTimeout(() => {
|
|
43
43
|
if(!error) {
|
package/package.json
CHANGED