It was <2013-11-29 pią 07:28>, when Tomasz Olszak wrote:
> 2013/11/29 Gaurav Kalra <[email protected]>
>
>> > From: Tomasz Olszak <[email protected]>
>> > Date: Thu, 28 Nov 2013 22:21:12 +0100
>>
>> > Subject: Re: [Dev] Qt in Tizen - project proposal
>> > Hello all,
>> > Yesterday Qt repositories in Tizen have been created. However I don't
>> have privilige to populate them with upstream sources.
>> > When I try to git push I get:
>> >
>> >
>> > $ git push origin tizen
>>
>> I believe that should be:
>> git push -f origin tizen
>>
>> > Counting objects: 3, done.
>> > Writing objects: 100% (3/3), 208 bytes | 0 bytes/s, done.
>> > Total 3 (delta 0), reused 0 (delta 0)
>> > remote:
>> > remote: Processing changes: refs: 1, done
>> > To ssh://review.tizen.org/platform/upstream/qtchooser.git
>> >  ! [remote rejected] tizen -> tizen (prohibited by Gerrit)
>> > error: failed to push some refs to 'ssh://
>> review.tizen.org/platform/upstream/qtchooser.git'
>> >
>> >

[...]
> Sorry, I should have been mentioned that I also tried with force switch and
> the result is the same.
>
> git push -f origin tizen
> Counting objects: 218, done.
> Delta compression using up to 8 threads.
> Compressing objects: 100% (88/88), done.
> Writing objects: 100% (218/218), 61.83 KiB | 0 bytes/s, done.
> Total 218 (delta 93), reused 208 (delta 90)
> remote: Resolving deltas: 100% (93/93)
> remote:
> remote: Processing changes: refs: 1, done
> To tizen:platform/upstream/qtchooser
>  ! [remote rejected] tizen -> tizen (prohibited by Gerrit)
> error: failed to push some refs to 'tizen:platform/upstream/qtchooser'
>
> And here's my:
> .git/config
> [core]
>         repositoryformatversion = 0
>         filemode = true
>         bare = false
>         logallrefupdates = true
> [remote "origin"]
>         url = tizen:platform/upstream/qtchooser
>         fetch = +refs/heads/*:refs/remotes/origin/*

That is because you can't (almost no one can) push directly to branches
and bypass the review process. Add:

    push = refs/heads/tizen:refs/for/tizen

to the above remote seciton. I'd recommend creating a script for cloning
tizen repositories that will do some setup for you (push, commit-msg
hook etc.)

-- 
Łukasz Stelmach
Samsung R&D Institute Poland
Samsung Electronics

Attachment: pgpil5iX_NvPO.pgp
Description: PGP signature

_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev

Reply via email to