зеркало из https://github.com/microsoft/git.git
clone: don't clone the info/alternates file
Now that the cloned alternates file is parsed, too we don't need to copy it into our new repository, we just reference it. Signed-off-by: Martin Waitz <tali@admingilde.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Родитель
dd05ea1799
Коммит
0438402271
|
@ -261,11 +261,7 @@ yes,yes)
|
||||||
;;
|
;;
|
||||||
yes)
|
yes)
|
||||||
mkdir -p "$GIT_DIR/objects/info"
|
mkdir -p "$GIT_DIR/objects/info"
|
||||||
{
|
echo "$repo/objects" >> "$GIT_DIR/objects/info/alternates"
|
||||||
test -f "$repo/objects/info/alternates" &&
|
|
||||||
cat "$repo/objects/info/alternates";
|
|
||||||
echo "$repo/objects"
|
|
||||||
} >>"$GIT_DIR/objects/info/alternates"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD"
|
git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче