提交 7558ef89 编写于 作者: L Linus Torvalds

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.
上级 113b9475
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册