From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x31.google.com (mail-oa1-x31.google.com [IPv6:2001:4860:4864:20::31]) by sourceware.org (Postfix) with ESMTPS id 453C53858CDB for ; Sat, 8 Oct 2022 13:23:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 453C53858CDB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dinwoodie.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dinwoodie.org Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-131ea99262dso8289956fac.9 for ; Sat, 08 Oct 2022 06:23:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dinwoodie.org; s=google; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=gw8muA5lrUf3AsS8sRTfkmI6k1NzTeqRT5LkFBhTsLw=; b=fw2RlmhCXA4EfELnLcoOgIyMODl7SQa4Fj8P1Nu4VttbLHtrYY1Wjn5U2UeeRLLMmN xHXGzqqeFeB8IaThMHpbo8LWIlC7QNsvyrw28Pa9276PtP+yRD7x4TevQfrbQ+lKVRgG BstyXxdGZ3FoL9NxFWUlNSlCsqyIx/H5K/UDs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gw8muA5lrUf3AsS8sRTfkmI6k1NzTeqRT5LkFBhTsLw=; b=vSZkhqw7QmD3FDddbo1PajrifKufA9fo4JB8zMhCU5kC6MjnASxEEkjNVn1oMDUJ4v w7OVWOs6ot8m6oOjnI2HYXuWLb/6DJ7BT/p4dT0uzf5RqnaiWkOTSj3ITwd0WwpYXLiU nG3VSj4RsScbafojjwpnU98EFjsBfDM2TBrgoeNZuSdYdN2fqQ4FlxAafgVWlo+VQ5ao TzJ5ZX6VAk4z33QCnCK5ZnveORqR/32bS0qysNnPhZlRpqiqRzuGiezpGPEshCkqObSI G5KicoVOf/os+sNpd4AW1tOchsOEwx0hSYu7c5eZn2uiGJgk534DntVxQI3LkKfqGb/X uutg== X-Gm-Message-State: ACrzQf3km/fv5AfISS4iVlQ6Z7C2GDqj9TeQLKhx8oEf53lR2TCEq6xb bly8nfFhl25+BrKRg8Xsuy8fPp6CD/3wqXIPI/JlZFqamAg= X-Google-Smtp-Source: AMsMyM7wFZ+IshApeHPxlnq5UCqSPpK8M9CawWaEkqIdQZYq/E+r9JTSt9mUUk/O5IRxtDiUW9pKO4OkP/1AkM1AelQ= X-Received: by 2002:a05:6870:9a0d:b0:136:60bd:18ef with SMTP id fo13-20020a0568709a0d00b0013660bd18efmr368693oab.206.1665235416591; Sat, 08 Oct 2022 06:23:36 -0700 (PDT) MIME-Version: 1.0 References: <20221004075508.akit65zoarxid6r2@lucy.dinwoodie.org> <20221004140254.u72m5jbj7czeobty@lucy.dinwoodie.org> In-Reply-To: From: Adam Dinwoodie Date: Sat, 8 Oct 2022 14:23:02 +0100 Message-ID: Subject: Re: Cygwin Git repos refusing push To: "cygwin-apps@cygwin.com" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Sat, 8 Oct 2022 at 14:12, Jon Turney wrote: > > On 04/10/2022 15:02, Adam Dinwoodie wrote: > [...] > >> > >> I've adjusted the gitolite configuration so this should work again. > > > > Would it be possible to add some output to the hooks to provide a useful > > explanation for what's going on? I think anything a hook prints to > > stdout or stderr will be seen by the user in the `git push` output, and > > something a bit more informative than "DENIED" would be nice! > > This is not totally straightforward, as this hook is part of, and > managed by, gitolite. > > > It's not a big issue either way, but having a more informative output in > > this case might have saved me a bit of time trying to ensure the problem > > was genuinely on the server and not just that I was doing something > > daft. > > Do you have a suggestion as to what else the hook should say? Something to the effect of "This server does not permit pushing to any branch other than 'master' or 'playground'" would have made it clearer what was going on, at least for me. But as I say, if it's difficult to do, it's not a big deal!