gitcmds: Check `git rev-parse` return code instead of scraping "fatal:"
commita307f02e5b511af6f44b6028bbaca237d0714b88
authorDavid Aguilar <davvid@gmail.com>
Mon, 5 Dec 2011 09:09:43 +0000 (5 01:09 -0800)
committerDavid Aguilar <davvid@gmail.com>
Mon, 5 Dec 2011 09:09:43 +0000 (5 01:09 -0800)
tree07bf4885d61e9437c22acc608601994a5bb33ffa
parent2e27a2330d91a28a9de7b0aa4edd3b64f6e53a97
gitcmds: Check `git rev-parse` return code instead of scraping "fatal:"

We can now have branches that start with the stirng "fatal:" ;-)
Check the return code instead of the combined stdout+stderr for "fatal:"
so that we inspect stdout only.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/gitcmds.py