fix -r dirbased for remote repositories which cannot get have per-directory history
Merge pull request #781 from vladak/dirbased_logic_fix

fix -r dirbased for remote repositories which cannot get have per-direct...