From owner-freebsd-git@freebsd.org Thu Dec 24 18:24:37 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 130514CCF81 for ; Thu, 24 Dec 2020 18:24:37 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D1z4j017dz4rqh; Thu, 24 Dec 2020 18:24:37 +0000 (UTC) (envelope-from jbeich@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1608834277; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lEgqzjnE4TzbUKM+B5vgR8A5/OPlmepZFmW/prDs79o=; b=T2aXm8X9QQO9hw/XzqwmV8RPeoSOMYWgUY3jvH/EmHfvpUwY5XJyZiN/b7o1KtruhTVLGz nUTzwqlxqrOCrMFWtgjL71d5Dp1J2DeIOvVX3KhoKY8gLpKI0WT4NADAFtSCvtbPvQs5Q7 vx3QJ1hOp/kumbj340WAy4BkS7btjn0WbD48AUddoF7NB/M2sSOGR0Gev2IUkCk+EEYzHd 04rR/6FXOL5xZHx1rsDApQj4QM8cHERjzQFjfv9w1NpgD8ateH5i1OS3tSli6DNkBkUIFk 9t+B8FpTdILaCSu3GJZz8eVhhMcR6UR6PLwcr1BSpWig3jcBNnAhW5Kt3nje4g== Received: by freefall.freebsd.org (Postfix, from userid 1354) id E992C154A1; Thu, 24 Dec 2020 18:24:36 +0000 (UTC) From: Jan Beich To: Li-Wen Hsu Cc: freebsd-git@freebsd.org Subject: Re: Cross-repo access vs. repo-dev playground References: Date: Thu, 24 Dec 2020 19:24:34 +0100 In-Reply-To: (Li-Wen Hsu's message of "Fri, 25 Dec 2020 01:42:54 +0800") Message-ID: MIME-Version: 1.0 Content-Type: text/plain ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1608834277; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lEgqzjnE4TzbUKM+B5vgR8A5/OPlmepZFmW/prDs79o=; b=tVTSAVKjBs6OuOdU2EQtA0DSt+wJyfhdZs4BKc7NdY9R9SEu77pSrS0Q/Fl7AsejR1TuJQ QDLAXLKEiK+6hDUUGBMpphi82n++xCEerIy2/Mc9rODeXLywZhqMAbEPTwfpUdovcglqzT lYTpfWiNO+h6cgyErZHVgECSy7ux+kggB79kfYNcuejvoMnpN5TQ9+IzdLJDwqumUFerc6 SMKF06UqhmDp19vfv3XJm+NYkmMXRRYtL0qr90lwzXNcHFZKqaERuChmasHJ1FGgFVZuVs EG3zvJefe2TTuksou/8qNiXezMHgNnSSsGmYhYe9Lkbmh6/yqLPNFaIUcFkfSQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1608834277; a=rsa-sha256; cv=none; b=BrlFae//sHoKfdUeQjeOJ90FgTeQt0kurCPKbtt0PYc6QO3scZWaPnmUnDOcf8iCkLrGGb R0qALU9JddbQjuzxwsOd8+kkA64ZbgzhJYJ4u4iXiBKq+/gR5wVRLh7RAFCe1Xbe4TCxlU qH3uy4hLY6d0V2himk0yNH/umfhQ4hUV4KHeGIZ2q+hj9q5+MQLGXhGfXbdHCFi/vS4uiU TKyYQdYHBjdUv/H1AMO7xs0cikpooc6QmZSNGDZhWIToKOHW/7p622eCvNJjB85R+MPuL+ nDjG+7fgUU0jlVcQ17wfD5jhvaMcqBfbFyHWAB8U3tfs3mxViEuRdpUssYhG+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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:24:37 -0000 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. $ ssh freefall.freebsd.org $ git clone https://git.FreeBSD.org/doc.git $ rm ~/.gitconfig $ git config --global user.email jbeich@FreeBSD.org $ git config --global user.name "Jan Beich" $ cd doc $ git remote add freebsd git@repo-dev.FreeBSD.org:doc.git $ echo '' >>share/pgpkeys/jbeich.key $ git commit -m "pgpkeys: update my key" share/pgpkeys/jbeich.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.