|
|
@@ -610,17 +610,17 @@ var op = { |
|
|
|
var perform_git_remove = (dir) => { |
|
|
|
op['is-git-repo'](dir).then((code) => { |
|
|
|
// console.log(code) |
|
|
|
if (code) { |
|
|
|
// if (code) { |
|
|
|
nodeShellExec('git', ['remote', 'get-url', remotename], { cwd: dir.name, stdio: 'ignore' }).then(() => { |
|
|
|
any(serial_perform_git_remove(dir.name).map(x)) |
|
|
|
}) |
|
|
|
.catch((e) => { |
|
|
|
console.log('skipped : ' + dir.name + ', reason : No remote named origin') |
|
|
|
}) |
|
|
|
} |
|
|
|
// } |
|
|
|
// else console.log('Skipped : Not a Git Repo : ' + dir.name) |
|
|
|
}).catch((e) => { |
|
|
|
// console.log('Failed : ' + dir.name) |
|
|
|
console.log('Failed : ' + dir.name) |
|
|
|
}) |
|
|
|
} |
|
|
|
|