Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 2020 14:27:59 +0200
From:      Mathieu Arnold <mat@freebsd.org>
To:        Thomas Mueller <mueller6722@twc.com>
Cc:        freebsd-current@freebsd.org, freebsd-git@freebsd.org
Subject:   Re: Please check the current beta git conversions
Message-ID:  <20200902122759.b6zhbc4qa4jgicdx@aching.in.mat.cc>
In-Reply-To: <cmu-lmtpd-69476-1599014331-0@prod2.absolight.net>
References:  <CAPyFy2CTTecRJDnXNvF%2BM2%2BaLWJpA%2BEdG43ZeU3qwsCruecoFA@mail.gmail.com> <20200901172340.ygmenn4uejciihlx@tilda.center> <90551.1598981857@critter.freebsd.dk> <CAPyFy2CmRd2R=NZw3EaPzj-ynFmAoVX2_myfLWcmQA_HGt2Kxg@mail.gmail.com> <cmu-lmtpd-69476-1599014331-0@prod2.absolight.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--iwjxfviwa6s3u2l5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Sep 02, 2020 at 02:37:45AM +0000, Thomas Mueller wrote:
> from Ed Maste:
>=20
> > > Any guidance on amount of diskspace and how long it takes to clone th=
e repo ?
>=20
> > I see just over 3GB in my clone, including about 2.5GB in the .git dire=
ctory.
>=20
> > If you have only one checkout git will require a bit more disk space
> > than svn. However, if you have two or more working trees (say, vanilla
> > FreeBSD and multiple work-in-progress trees, or head and stable
> > branches, etc.) using "git worktree" will share the .git directory and
> > in total will occupy less space than the equivalent in svn.
>=20
> > I'd expect clones to take minutes, although cgit-beta is running on a
> > lower spec jail host and might have trouble if many people are cloning
> > at the same time.
>=20
> 2.5 GB in .git directory sounds crazy and incomprehensible to me.

2.5GB is for the full history, if you only care about the main branch,
you can clone with:

  git clone --branch=3Dmain --single-branch https...

It will cut .git down to about 1.2GB.


If you do not care about the history and only want the tip of the
branch, you can also use:

  git clone --branch=3Dmain --depth 1 https...

This will cut it down even more to about 270MB.

--=20
Mathieu Arnold

--iwjxfviwa6s3u2l5
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAABCgB9FiEEVhwchfRfuV0unqO5KesJApEdfgIFAl9Pj8tfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU2
MUMxQzg1RjQ1RkI5NUQyRTlFQTNCOTI5RUIwOTAyOTExRDdFMDIACgkQKesJApEd
fgJjeA/+LOfcmiNV3LGpV+Las6F0/lzml7zyM1wxUScr9yoDhQormQjZdxVQoRtR
sHN7CKbhxksuhvH0odeYGwdiAWepWujrrocMdRSU+2WANzMtmoK0a08dhEQj+ODA
+HL7+fEiKQh9ILL7N3KFeZe2CfcNuUhjlhZYIX6jG94en6JrWAwm1r6gOckZ4E08
jy+8faGasvW1FtoQYHWY2KEODbWl+jk4zWFOVptEQT7F8DxRzr6g8H5Jxq9xrTQC
GUDn9fz6MYNizY7SLpXMxY3dQU86pnJY5I3l84lugshSpUZCYxetBRkE2/F/yr/6
s++h1Vt2CsqTWtWg2ichXNyLtaW6cvHfcRJ2VHihJa17lrg7hlBYY6HQLx1GuTBn
FMA9rdlIGu5vgNGue0oX2CWftZlD2at1Iim/b0td9EW1UGg9EbiwwKmHSiNSLWR0
KCS0RmGjai9sG/TiiwCkPE261uR0mHtfXqMMGG96UCz1r7d3qVpwqImxVh4USRjL
43c1Pr+0W5/rytDZMl98X0HaEPJeHYft+Bxgm23MGVPs/ZPUKi8jd3CobJZPjXsk
IJLweeWqT7+RyBSDIA7g1MRWdUlogOU8oR0V9/4y+oXOYC7ZlKM7jqRGVcLOQ2f1
/rxgZXeQPHS6ILY0I75w1vwX8BXx/EJaGbCt++M1f1BvvfDU8sY=
=opU3
-----END PGP SIGNATURE-----

--iwjxfviwa6s3u2l5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200902122759.b6zhbc4qa4jgicdx>