Teach "git clone" about rsync sources

That will be the normal way of cloning anonymously for a while, so let's
make sure it's easy to use.
This commit is contained in:
Linus Torvalds 2005-07-08 17:07:12 -07:00
Родитель 113b94751d
Коммит 7558ef89ed
1 изменённых файлов: 13 добавлений и 1 удалений

Просмотреть файл

@ -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