mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-28 17:13:45 +03:00
Handle errors from 'git status'
This commit is contained in:
parent
0143b133fe
commit
01a73e3ad3
@ -36,6 +36,8 @@ function parseArguments(next) {
|
||||
function checkCleanWorkingTree(next) {
|
||||
console.log('Checking for a clean working tree');
|
||||
exec('git status --porcelain', function(error, output) {
|
||||
if (error) return next(error)
|
||||
|
||||
var modifiedEntries = output.split('\n').filter(function(line) {
|
||||
return !/^\?\?/.test(line) && line.length > 0
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user