Set upstream information on a branch