"GOT", but the "O" is a cute, smiling sun Index | Thread

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: got send: show failure in updating remote branches
To:
Omar Polo <op@omarpolo.com>
Cc:
gameoftrees@openbsd.org
Date:
Mon, 14 Nov 2022 21:14:53 +0100

Download raw body.

On Mon, Nov 14, 2022 at 05:54:30PM +0100, Omar Polo wrote:
> On 2022/11/14 17:05:02 +0100, Omar Polo <op@omarpolo.com> wrote:
> > Gonzalo hit an issue earlier this morning: `got send -f' was failing
> > because of server-side checks on github.  It's wasn't obvious what
> > failure was because to read the error message one had to pass -vvv and
> > read the raw remote packet line.
> > 
> > Diff below propagates the error read from got-send-pack where it's
> > parsed up to the got send pack callback.  Now, pushing results in:
> > 
> > % got send -f github
> > Connecting to "github" git@github.com
> > 39 commits colored; 6 objects found; 4 trees scanned
> > packing 1 reference; 6 objects; deltify: 100%; uploading pack:  484B 100%
> > Server has rejected refs/heads/main: protected branch hook declined
> > 
> > which at least gives a clue to what's happening.
> > 
> > ok/thoughts?
> 
> here's a better diff that also sanitizes the error message received
> from the server, stolen from got-fetch-pack.c

ok, thanks!