Fix return value of git.checkout

The rest of the function returns either True or False.
git would return an error code 0 in this case, which corresponds to True here.
Merge pull request #122 from po1/patch-2

Fix return value of git.checkout