1
0
mirror of https://github.com/git/git.git synced 2024-11-16 00:03:06 +01:00

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: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2005-08-17 15:18:41 -07:00
parent 6a0049c076
commit 0f87f89365

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