Check exit status of 'git status'