There's a code smell here of Feature Envy ( http://c2.com/cgi/wiki?FeatureEnvySmell )
We're making 5 calls to Git, without receiving back any return values.  I think all of this could be handled with a single call to a Git method.
e.g.
`Git.set_up_testing_brancy(pull_request)`