rubenv / grunt-git

Git commands for grunt.
MIT License
227 stars 83 forks source link

gitcheckout failures don't produce meaningful error message #17

Open Sequoia opened 10 years ago

Sequoia commented 10 years ago
[533]$ grunt gitcheckout:ghPages
Running "gitcheckout:ghPages" (gitcheckout) task
Warning: Task "gitcheckout:ghPages" failed. Use --force to continue.
Aborted due to warnings.

What happened???

[534]$ git checkout gh-pages
error: Your local changes to the following files would be overwritten by checkout:
    Gruntfile.js
    package.json
Please, commit your changes or stash them before you can switch branches.
Aborting

ahh... I have uncommitted files. The error message produced by git should be output when the grunt task fails.

rubenv commented 10 years ago

Does this still happen with the better-testing branch?