Please check the current beta git conversions
Bakul Shah
bakul at iitbombay.org
Sat Oct 3 23:53:28 UTC 2020
On Oct 3, 2020, at 3:14 PM, Steffen Nurpmeso <steffen at sdaoden.eu> wrote:
>
> And still "git fetch" fails with
>
> POST git-upload-pack (chunked)
> error: RPC failed; curl 55 OpenSSL SSL_write: Broken pipe, errno 32
> fatal: the remote end hung up unexpectedly
>
> My config file is
>
> [core]
> repositoryformatversion = 0
> filemode = true
> bare = false
> logallrefupdates = true
> [remote "origin"]
> url = https://cgit-beta.freebsd.org/src.git
> #url = https://github.com/freebsd/freebsd.git
> fetch = +refs/heads/releng/5.5:refs/remotes/origin/releng/5.5
> fetch = +refs/heads/releng/6.4:refs/remotes/origin/releng/6.4
> fetch = +refs/heads/releng/7.4:refs/remotes/origin/releng/7.4
> fetch = +refs/heads/releng/8.4:refs/remotes/origin/releng/8.4
> fetch = +refs/heads/releng/9.3:refs/remotes/origin/releng/9.3
> fetch = +refs/heads/releng/10.3:refs/remotes/origin/releng/10.4
> fetch = +refs/heads/releng/11.4:refs/remotes/origin/releng/11.4
> fetch = +refs/heads/releng/12.1:refs/remotes/origin/releng/12.1
> fetch = +refs/heads/stable/12:refs/remotes/origin/stable/12
> fetch = +refs/heads/main:refs/remotes/origin/main
> fetch = +refs/notes/*:refs/notes/*
FWIW, I have a bare repo with the following config file
[core]
repositoryformatversion = 0
filemode = true
bare = true
logallrefupdates = true
[remote "origin"]
url = https://cgit-beta.freebsd.org/src.git
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/notes/*:refs/notes/*
[branch "main"]
remote = origin
merge = 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.
More information about the freebsd-current
mailing list