From owner-freebsd-current@freebsd.org Mon Oct 5 17:17:36 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BC607429EAA for ; Mon, 5 Oct 2020 17:17:36 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4C4nNH472Mz4Bnp for ; Mon, 5 Oct 2020 17:17:35 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: by sdaoden.eu (Postfix, from userid 1000) id 1037B16057; Mon, 5 Oct 2020 19:17:28 +0200 (CEST) Date: Mon, 05 Oct 2020 19:17:27 +0200 From: Steffen Nurpmeso To: Bakul Shah Cc: FreeBSD Current Subject: Re: Please check the current beta git conversions Message-ID: <20201005171727.U7NLm%steffen@sdaoden.eu> In-Reply-To: References: <20200903191410.sgjUQ%steffen@sdaoden.eu> <20200926195056.1QqEB%steffen@sdaoden.eu> <20201003221407.ZnssQ%steffen@sdaoden.eu> Mail-Followup-To: Bakul Shah , FreeBSD Current User-Agent: s-nail v14.9.19 OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. X-Rspamd-Queue-Id: 4C4nNH472Mz4Bnp X-Spamd-Bar: - X-Spamd-Result: default: False [-1.70 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.01)[-1.007]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; NEURAL_HAM_LONG(-1.02)[-1.020]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sdaoden.eu]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.38)[-0.376]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15987, ipnet:217.144.128.0/20, country:DE]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Oct 2020 17:17:36 -0000 Hello. Bakul Shah wrote in : |On Oct 3, 2020, at 3:14 PM, Steffen Nurpmeso 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 main |git worktree add stable/12 Interesting new way to work with external check out directories, i only knew about the environment variable approach. (Though have forgotten the details, i am using less of git than what mankind does with its brain.) I use bare repositories only for the git repositories i publish in the web (i have the very same thing locally 1:1 and the post-receive hook then forwards). This old habit of mine (an arena-manager-null branch without files) is maybe strange. The monthly update still updates all repos, merges, garbage collects and then checks out this branch in order to create the backup without any checkout. Except for some bootstrap things, like git itself. It was meant for minimal backup sizes while still being able to bootstrap in the nowhere without internet accesss. I never used that. Hm. Sure, after the lengthy matching of objects failed i was about to simply refetch the entire repository, but i only had ~800 MB download left, so i had to interrupt that. I was just reporting because i thought an automated updater should work instead of failing as above. It must be some limit on the server, runtime or whatever, which causes the common history search to be aborted. Maybe it does not abort for you because you have a tremendously potent internet connection, whereas with this wifi thing you always have to take into account tenths of seconds (i would say) delay whenever a new chunk comes in after some delay. Maybe it is this. Anyhow, it seems for now it would be better for me to either wait until -beta becomes stable or switch back to the github version until then. I should not have thrown that thing away, 1.4+ GB of data, that is ugly. And all the stuff is so badly packed, on Saturday i then cloned wolfssl out of interest and had to download 179 or so MB from github for [master] which after packing ended up as not more than 39 MB. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)