(callback)
| 378 | } |
| 379 | |
| 380 | function getLocalChanges (callback) { |
| 381 | exec('git status --porcelain --untracked-files=no', {cwd: settings.TGX_SOURCE_PATH}, (error, stdout, stderr) => { |
| 382 | if (error) { |
| 383 | throw error; |
| 384 | } |
| 385 | const changes = trimIndent(stdout).trim(); |
| 386 | callback(changes && changes.length ? changes : null); |
| 387 | }); |
| 388 | } |
| 389 | |
| 390 | function postHttp (url, jsonData, needBinary, httpOptions, method) { |
| 391 | return new Promise((accept, reject) => { |
no test coverage detected