From owner-freebsd-git@freebsd.org Thu Dec 24 18:46:21 2020 Return-Path: Delivered-To: freebsd-git@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 BE7F54CD8AB for ; Thu, 24 Dec 2020 18:46:21 +0000 (UTC) (envelope-from lwhsu@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D1zYn4xKQz4t6Q; Thu, 24 Dec 2020 18:46:21 +0000 (UTC) (envelope-from lwhsu@freebsd.org) Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: lwhsu/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 977084660; Thu, 24 Dec 2020 18:46:21 +0000 (UTC) (envelope-from lwhsu@freebsd.org) Received: by mail-yb1-f176.google.com with SMTP id w127so2830361ybw.8; Thu, 24 Dec 2020 10:46:21 -0800 (PST) X-Gm-Message-State: AOAM533Cwl/RPKz45oTHIEO7la12MUT4XQig0H+dgxOGkRUcBTp4XJOd 03AlOy8cljuR2Kxv7jX8sR6kU5fd5XAr+xv8YqI= X-Google-Smtp-Source: ABdhPJyl3Yv9wzSYscmI6e3wWX6XipX0G5M6p2ouLb4nVrpQX9LPvoA8U62gxzgUIJ9iAFJUWWzuQqI21B7XssYNUrU= X-Received: by 2002:a25:7e05:: with SMTP id z5mr24357921ybc.497.1608835581160; Thu, 24 Dec 2020 10:46:21 -0800 (PST) MIME-Version: 1.0 References: <7dp7-qcax-wny@FreeBSD.org> In-Reply-To: <7dp7-qcax-wny@FreeBSD.org> From: Li-Wen Hsu Date: Fri, 25 Dec 2020 02:46:09 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Cross-repo access vs. repo-dev playground To: Jan Beich Cc: freebsd-git@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2020 18:46:21 -0000 On Fri, Dec 25, 2020 at 2:38 AM Jan Beich wrote: > > Jan Beich writes: > > > Li-Wen Hsu writes: > > > >> On Fri, Dec 25, 2020 at 1:00 AM Jan Beich wrote: > >> > >>> > >>> Having only ports/ bit it seems my ~/.gitconfig is correct, so > >>> I've pushed https://cgit-dev.freebsd.org/ports/commit/?h=57b1cfb8f79b > >>> but pushing to other *-dev repos fails. > >>> > >>> Am I missing something? > >>> > >>> $ cd /path/to/freebsd-doc > >>> $ ee share/pgpkeys/jbeich.key > >>> $ git commit -m "pgpkeys: update my key" !$ > >>> $ git push freebsd > >>> FATAL -- ACCESS DENIED > >>> Repo doc > >>> User jbeich > >>> Stage Before git was called > >>> Operation Repo write > >>> > >>> FATAL: W any doc jbeich DENIED by fallthru > >>> (or you mis-spelled the reponame) > >>> fatal: Could not read from remote repository. > >>> > >>> Please make sure you have the correct access rights > >>> and the repository exists. > >>> > >>> $ git remote -v > >>> freebsd git@repo-dev.FreeBSD.org:doc.git (fetch) > >>> freebsd git@repo-dev.FreeBSD.org:doc.git (push) > >>> origin https://git.FreeBSD.org/doc.git (fetch) > >>> origin https://git.FreeBSD.org/doc.git (push) > >> > >> Cross repo commit should be accepted as it is before. I suspect this > >> is some timing issue when I was testing configuration of the staging > >> (-dev) environment. Please try again and see if it still has issues. > >> (I have src and ports bits, but I did push to doc repo as the first > >> git commit :-) > > > > How long to wait? I've re-cloned but still hit the same error. > > Nevermind. Worked fine just now, see https://cgit-dev.freebsd.org/doc/commit/?h=3fe83a040cae Good to know it works for you. You replied faster than me. Thanks for your report and I did find another bug in the access checker. Should be fixed now. Best, Li-Wen