(cmd)
| 75 | } |
| 76 | |
| 77 | function command(cmd) { |
| 78 | return new Promise(function (resolve, reject) { |
| 79 | exec(cmd, { cwd: root }, function (err, stdout, stderr) { |
| 80 | var error = stderr.trim(); |
| 81 | if (error) { |
| 82 | return reject(new Error(error)); |
| 83 | } |
| 84 | resolve(stdout.split('\n').join('')); |
| 85 | }); |
| 86 | }); |
| 87 | } |
| 88 | |
| 89 | function commit() { |
| 90 | return command('git rev-parse HEAD'); |
searching dependent graphs…