Not sure why, but this method and the one below should preferably be using the `git!` method, which also raises a proper error message if the command does not exist.

Finally, but just an FYI, for the exit status you can also use `$?.success?`.