github ports

Steve O'Hara-Smith steve at sohara.org
Mon Jan 11 10:37:20 UTC 2021


On Mon, 11 Jan 2021 11:00:38 +0100
Eduardo Morrás via freebsd-questions <freebsd-questions at freebsd.org> wrote:

> On Mon, 11 Jan 2021 09:21:16 +0000
> Steve O'Hara-Smith <steve at sohara.org> wrote:
> 
> > On Mon, 11 Jan 2021 09:57:37 +0100
> > Erwan David <erwan at 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 at sohara.org>


More information about the freebsd-questions mailing list