diff options
-rwxr-xr-x | git-clone-script | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/git-clone-script b/git-clone-script index 19697427e..01707e92a 100755 --- a/git-clone-script +++ b/git-clone-script @@ -79,4 +79,16 @@ yes,yes) ;; esac -cd "$D" && git clone-pack "$repo" +case "$repo" in +rsync://*) + rsync -avz --ignore-existing "$repo/objects/" "$D/.git/objects/" && + rsync -avz --ignore-existing "$repo/refs/" "$D/.git/refs/" + ;; +http://*) + echo "Somebody should add http fetch" >&2 + exit 1 + ;; +*) + cd "$D" && git-clone-pack "$repo" + ;; +esac |