clone: fix ref selection in --single-branch --branch=xxx