git-clone: fix handling of upsteram whose HEAD does not point at master.