Merge pull request #3171 from libgit2/cmn/link-fallback clone: fall back to copying when linking does not work