提交 0f87f893 编写于 作者: J Junio C Hamano

Make sure alternates are carried over from the original repository.

When we create a cheap local clone by pointing at the object databse
of the original repository, we forgot to take the alternates the original
repository might have had into account.
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 6a0049c0
......@@ -81,7 +81,11 @@ yes,yes)
;;
yes)
mkdir -p "$D/.git/objects/info"
echo "$repo/objects" >"$D/.git/objects/info/alternates"
{
test -f "$repo/objects/info/alternates" &&
cat "$repo/objects/info/alternates";
echo "$repo/objects"
} >"$D/.git/objects/info/alternates"
;;
esac
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册