git-clone.sh: properly configure remote even if remote's head is dangling