retrieve the correct branch info, since deploy will create a local
deploy branch on the server by default.