Fix git-clone buglet for remote case.