Allowing to select the remote and the branch pulling from.

This is a first stab at fixing issue #435.