use upstream branch rather than local when resolving branch name -> commit