Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Dec 2020 19:24:34 +0100
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Li-Wen Hsu <lwhsu@freebsd.org>
Cc:        freebsd-git@freebsd.org
Subject:   Re: Cross-repo access vs. repo-dev playground
Message-ID:  <ft3v-qcyl-wny@FreeBSD.org>
In-Reply-To: <CAKBkRUzjDDNA=8DzBjTg2SbHa3%2B3g%2BBomBm8xR6fO0-uedgxAQ@mail.gmail.com> (Li-Wen Hsu's message of "Fri, 25 Dec 2020 01:42:54 %2B0800")
References:  <czyz-ta05-wny@FreeBSD.org> <CAKBkRUzjDDNA=8DzBjTg2SbHa3%2B3g%2BBomBm8xR6fO0-uedgxAQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Li-Wen Hsu <lwhsu@freebsd.org> writes:

> On Fri, Dec 25, 2020 at 1:00 AM Jan Beich <jbeich@freebsd.org> 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 '<!-- TEST -->' >>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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ft3v-qcyl-wny>