Permission not granted to push my patch

classic Classic list List threaded Threaded
6 messages Options
Cyrille-2 Cyrille-2
Reply | Threaded
Open this post in threaded view
|

Permission not granted to push my patch

Hello,
I would like to push dictionaries on the dictionaries branch on Gerrit.
But when I try to push I have an issue with permission:
git push ssh://[hidden email]:29418/dictionaries
HEAD:kikongo
Enter passphrase for key '/home/cyrille/.ssh/id_rsa':
Décompte des objets: 13, fait.
Delta compression using up to 4 threads.
Compression des objets: 100% (12/12), fait.
Écriture des objets: 100% (13/13), 14.10 KiB | 4.70 MiB/s, fait.
Total 13 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1)
remote: Processing changes: refs: 1, done   
To ssh://gerrit.libreoffice.org:29418/dictionaries
 ! [remote rejected] HEAD -> kikongo (prohibited by Gerrit)
error: impossible de pousser des références vers
'ssh://[hidden email]:29418/dictionaries'

  I tried also with HEAD:refs/for/kikongo

How to create ref with permissions?

Thanks for help.

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Christian Lohmaier-3 Christian Lohmaier-3
Reply | Threaded
Open this post in threaded view
|

Re: Permission not granted to push my patch

Hi,

On Fri, May 3, 2019 at 10:36 PM Cyrille <[hidden email]> wrote:

> I would like to push dictionaries on the dictionaries branch on Gerrit.
> But when I try to push I have an issue with permission:
> git push ssh://[hidden email]:29418/dictionaries
> HEAD:kikongo

You cannot create branches or push to a branch directly, you can only
create review requests.

I.e. push to refs/for/master

ciao
Christian
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Cyrille-2 Cyrille-2
Reply | Threaded
Open this post in threaded view
|

Re: Permission not granted to push my patch



Il 04/05/2019 11:39, Christian Lohmaier ha scritto:
> Hi,
Hi, Thank you for the help.
>
> I.e. push to refs/for/master
Then the good command is:

git push ssh://[hidden email]:29418/dictionaries
refs/for/master
Or:
git push ssh://[hidden email]:29418/dictionaries
HEAD:refs/for/master
> ciao
> Christian

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Cyrille-2 Cyrille-2
Reply | Threaded
Open this post in threaded view
|

Re: Permission not granted to push my patch

In reply to this post by Christian Lohmaier-3
I tried:
git push <a class="moz-txt-link-freetext" href="ssh://lafricain@gerrit.libreoffice.org:29418/dictionaries">ssh://lafricain@...:29418/dictionaries HEAD:refs/for/master

I got now this error:
remote: Resolving deltas: 100% (1/1)
remote: Processing changes: refs: 1, done   
remote: ERROR: [b5f81e8] missing Change-Id in commit message footer
remote:
remote: Hint: To automatically insert Change-Id, install the hook:
remote:   gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [hidden email] ${gitdir}/hooks/
remote: And then amend the commit:
remote:   git commit --amend
remote:
To <a class="moz-txt-link-freetext" href="ssh://gerrit.libreoffice.org:29418/dictionaries">ssh://gerrit.libreoffice.org:29418/dictionaries
 ! [remote rejected] HEAD -> refs/for/master ([b5f81e8] missing Change-Id in commit message footer)

Il 04/05/2019 11:39, Christian Lohmaier ha scritto:
Hi,

On Fri, May 3, 2019 at 10:36 PM Cyrille [hidden email] wrote:

I would like to push dictionaries on the dictionaries branch on Gerrit.
But when I try to push I have an issue with permission:
git push <a class="moz-txt-link-freetext" href="ssh://lafricain@gerrit.libreoffice.org:29418/dictionaries">ssh://lafricain@...:29418/dictionaries
HEAD:kikongo
You cannot create branches or push to a branch directly, you can only
create review requests.

I.e. push to refs/for/master

ciao
Christian


_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Kaganski Mike Kaganski Mike
Reply | Threaded
Open this post in threaded view
|

Re: Permission not granted to push my patch

Hi,

On 04.05.2019 12:45, Cyrille wrote:

> I tried:
> git push ssh://[hidden email]:29418/dictionaries
> HEAD:refs/for/master
>
> I got now this error:
> remote: Resolving deltas: 100% (1/1)
> remote: Processing changes: refs: 1, done
> remote: ERROR: [b5f81e8] missing Change-Id in commit message footer
> remote:
> remote: Hint: To automatically insert Change-Id, install the hook:
> remote:   gitdir=$(git rev-parse --git-dir); scp -p -P 29418
> [hidden email]:hooks/commit-msg ${gitdir}/hooks/
> remote: And then amend the commit:
> remote:   git commit --amend
> remote:
> To ssh://gerrit.libreoffice.org:29418/dictionaries
>   ! [remote rejected] HEAD -> refs/for/master ([b5f81e8] missing
> Change-Id in commit message footer)

The cited hint seems pretty obvious? ;-)

--
Best regards,
Mike Kaganski
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Cyrille-2 Cyrille-2
Reply | Threaded
Open this post in threaded view
|

Re: Permission not granted to push my patch



Il 04/05/2019 11:49, Kaganski Mike ha scritto:

> Hi,
>
> On 04.05.2019 12:45, Cyrille wrote:
>> I tried:
>> git push ssh://[hidden email]:29418/dictionaries
>> HEAD:refs/for/master
>>
>> I got now this error:
>> remote: Resolving deltas: 100% (1/1)
>> remote: Processing changes: refs: 1, done
>> remote: ERROR: [b5f81e8] missing Change-Id in commit message footer
>> remote:
>> remote: Hint: To automatically insert Change-Id, install the hook:
>> remote:   gitdir=$(git rev-parse --git-dir); scp -p -P 29418
>> [hidden email]:hooks/commit-msg ${gitdir}/hooks/
>> remote: And then amend the commit:
>> remote:   git commit --amend
>> remote:
>> To ssh://gerrit.libreoffice.org:29418/dictionaries
>>   ! [remote rejected] HEAD -> refs/for/master ([b5f81e8] missing
>> Change-Id in commit message footer)
> The cited hint seems pretty obvious? ;-)
My knwonledge of gerrit is really basic even level zero :) But yes you
are right it is pretty obvious (I didn't read well)... It seems to be ok
now, I did:
gitdir=$(git rev-parse --git-dir); scp -p -P 29418
[hidden email]:hooks/commit-msg ${gitdir}/hooks/

Then:
git commit --amend

And finally the command runs without errors:
git push ssh://[hidden email]:29418/dictionaries
HEAD:refs/for/master
Enter passphrase for key '/home/cyrille/.ssh/id_rsa':
Décompte des objets: 13, fait.
Delta compression using up to 4 threads.
Compression des objets: 100% (12/12), fait.
Écriture des objets: 100% (13/13), 14.14 KiB | 4.71 MiB/s, fait.
Total 13 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1)
remote: Processing changes: new: 1, refs: 1, done   
remote:
remote: New Changes:
remote:   https://gerrit.libreoffice.org/71791 New hunspell dic for
Kituba (CD and CG)
remote:
To ssh://gerrit.libreoffice.org:29418/dictionaries
 * [new branch]      HEAD -> refs/for/master


>


_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice