Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Oct 2020 16:53:24 -0700
From:      Bakul Shah <bakul@iitbombay.org>
To:        Steffen Nurpmeso <steffen@sdaoden.eu>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Please check the current beta git conversions
Message-ID:  <EFE45CBF-74EC-47E0-98B9-6C52B2E6E338@iitbombay.org>
In-Reply-To: <20201003221407.ZnssQ%steffen@sdaoden.eu>
References:  <20200903191410.sgjUQ%steffen@sdaoden.eu> <20200926195056.1QqEB%steffen@sdaoden.eu> <20201003221407.ZnssQ%steffen@sdaoden.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 3, 2020, at 3:14 PM, Steffen Nurpmeso <steffen@sdaoden.eu> wrote:
>=20
> And still "git fetch" fails with
>=20
>  POST git-upload-pack (chunked)
>  error: RPC failed; curl 55 OpenSSL SSL_write: Broken pipe, errno 32
>  fatal: the remote end hung up unexpectedly
>=20
> My config file is
>=20
>  [core]
>    repositoryformatversion =3D 0
>    filemode =3D true
>    bare =3D false
>    logallrefupdates =3D true
>  [remote "origin"]
>    url =3D https://cgit-beta.freebsd.org/src.git
>    #url =3D https://github.com/freebsd/freebsd.git
>    fetch =3D +refs/heads/releng/5.5:refs/remotes/origin/releng/5.5
>    fetch =3D +refs/heads/releng/6.4:refs/remotes/origin/releng/6.4
>    fetch =3D +refs/heads/releng/7.4:refs/remotes/origin/releng/7.4
>    fetch =3D +refs/heads/releng/8.4:refs/remotes/origin/releng/8.4
>    fetch =3D +refs/heads/releng/9.3:refs/remotes/origin/releng/9.3
>    fetch =3D +refs/heads/releng/10.3:refs/remotes/origin/releng/10.4
>    fetch =3D +refs/heads/releng/11.4:refs/remotes/origin/releng/11.4
>    fetch =3D +refs/heads/releng/12.1:refs/remotes/origin/releng/12.1
>    fetch =3D +refs/heads/stable/12:refs/remotes/origin/stable/12
>    fetch =3D +refs/heads/main:refs/remotes/origin/main
>    fetch =3D +refs/notes/*:refs/notes/*

FWIW, I have a bare repo with the following config file

[core]
	repositoryformatversion =3D 0
	filemode =3D true
	bare =3D true
	logallrefupdates =3D true
[remote "origin"]
	url =3D https://cgit-beta.freebsd.org/src.git
	fetch =3D +refs/heads/*:refs/remotes/origin/*
	fetch =3D +refs/notes/*:refs/notes/*
[branch "main"]
	remote =3D origin
	merge =3D refs/heads/main

/usr/src is a worktree and everything seems to be working fine.

I manually converted to a bare repo (first testing this with a much
smaller repo) and fixed up various refs. But probably safer to
just start from scratch:

git clone --bare https://cgit-beta.freebsd.org/src.git
cd src.git
git fetch origin 'refs/notes/*:refs/notes/origin/*' # <<< not sure about =
this....
	# don't recall if I manually added the second fetch line in the =
config file.
	# but notes get fetched fine; though I don't understand why =
100MB+ get
	# downloaded every time even though only a few files change.

git worktree add <local-current-path> main
git worktree add <local-stable/12-path> stable/12

etc.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EFE45CBF-74EC-47E0-98B9-6C52B2E6E338>