Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2021 10:37:11 +0000
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        freebsd-questions@freebsd.org
Cc:        Eduardo =?UTF-8?B?TW9ycsOhcw==?= <emorrasg@yahoo.es>
Subject:   Re: github ports
Message-ID:  <20210111103711.cfc9272b2d1e3884a99a3f34@sohara.org>
In-Reply-To: <20210111110038.35efd1a2820c47bb89b0552a@yahoo.es>
References:  <20210110133605.6538dfd5@dismail.de> <CADnZ6B=Yy_fFUtAds3HjKZT10wNhGA6PzkYayc0mLNGoK_ug7Q@mail.gmail.com> <E79DB347-6EFA-458F-99B2-3E0177FB2AE5@kicp.uchicago.edu> <9cf7e6cd-7eb2-3e21-f11c-1470f53a0107@FreeBSD.org> <d920f15c-fee4-0532-0d95-d5728ff2ef8b@rail.eu.org> <20210111092116.b7e9fc2b87ce745162849fd0@sohara.org> <20210111110038.35efd1a2820c47bb89b0552a@yahoo.es>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 11 Jan 2021 11:00:38 +0100
Eduardo MorrĂ¡s via freebsd-questions <freebsd-questions@freebsd.org> wrote:

> On Mon, 11 Jan 2021 09:21:16 +0000
> Steve O'Hara-Smith <steve@sohara.org> wrote:
> 
> > On Mon, 11 Jan 2021 09:57:37 +0100
> > Erwan David <erwan@rail.eu.org> wrote:
> > 
> > > What is the solution for those who are not interessed/cannot handle
> > > the whole history with all branches ?
> > 
> > 	Add these to the git clone command.
> > 
> > 	--depth 1 --single-branch
> 
> So, can I change 
> 
> #portsnap fetch update 
> 
> with 
> 
> with this sh script?
> 
> #!/bin/sh
> git clone --depth 1 --single branch
> git://github.com/freebsd/freebsd-ports ports
> 
> Or will be it more complicated and prone to error?

	You want to do the clone once to set things up, after that you use 

git pull git://github.com/freebsd/freebsd-ports ports

-- 
Steve O'Hara-Smith <steve@sohara.org>



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