[gmx-developers] private branch problem

Berk Hess hess at kth.se
Tue Jul 10 12:08:19 CEST 2012


But where do they end up then on the gerrit web pages?
We don't want the main page to show private branches, I would think.

Cheers,

Berk

On 07/10/2012 12:02 PM, Szilárd Páll wrote:
> Actually, since 2.1.4 gerrit has had private branches which AFAIR has
> been mentioned by Roland:
> http://code.google.com/p/gerrit/issues/detail?id=577
>
> --
> Szilárd
>
>
> On Tue, Jul 10, 2012 at 11:37 AM, Berk Hess <hess at kth.se> wrote:
>> Hi,
>>
>> Gerrit is not intended to work with private branches.
>> It is set up for reviewing changes that go into official gromacs branches.
>>
>> You can set up a private git repository on the gromacs server instead.
>> The policy is now that only branches scheduled for merge into a release
>> are in the main repository, all others should be in private repositories.
>> But this doesn't seem to be documented yet.
>>
>> Cheers,
>>
>> Berk
>>
>>
>> On 07/10/2012 10:55 AM, Jochen Hub wrote:
>>> Hi,
>>>
>>> one update:  In order to push to gerrit, I tried:
>>>
>>> $ git push private
>>>
>>> But his gives:
>>>
>>> [remote rejected] private_jochenhub/waxs -> refs/private/jochenhub/waxs
>>> (can not create new references)
>>> error: failed to push some refs to
>>> 'ssh://jochenhub@gerrit.gromacs.org:29418/gromacs'
>>>
>>> Does anyone know what this means?
>>>
>>> Many thanks,
>>> Jochen
>>>
>>> Am 7/10/12 10:33 AM, schrieb Jochen Hub:
>>>> Hi,
>>>>
>>>> I try to setup a private branch on gerrit that can be shared within the
>>>> group. I followed the instruction in the Gerrit tutorial, added these
>>>> lines to .git/config,
>>>>
>>>> [remote "private"]
>>>>           fetch =
>>>> +refs/private/jochenhub/*:refs/remotes/private_jochenhub/*
>>>>           url = ssh://jochenhub@gerrit.gromacs.org:29418/gromacs
>>>>           push = refs/heads/private_jochenhub/*:refs/private/jochenhub/*
>>>>
>>>> and did a
>>>>
>>>> $ git pull private release-4-5-patches
>>>> (just "git pull private" as stated in the tutorial did not work)
>>>> $ git checkout -b private_jochenhub/mybranch --track mybranch
>>>>
>>>> where mybranch was a local branch already present. Now, "git branch"
>>>> lists (amount the other branches):
>>>> mybranch
>>>> private_jochenhub/mybranch
>>>>
>>>> But now I am a bit stuck. How do push changes to gerrit, so people from
>>>> my group can access it? And where can I set the permissions, since on
>>>> the Gerrit site under Admin/Project/Access I don't see my private
>>>> branch. There is only a section "Reference: refs/private/${username}/*",
>>>> which lists gmxcore under permissions.
>>>>
>>>> Any help is highly appreciated!
>>>>
>>>> Many tnanks,
>>>> Jochen
>>>>
>>>>
>>>>
>>>>
>>
>> --
>> gmx-developers mailing list
>> gmx-developers at gromacs.org
>> http://lists.gromacs.org/mailman/listinfo/gmx-developers
>> Please don't post (un)subscribe requests to the list. Use the www interface
>> or send it to gmx-developers-request at gromacs.org.





More information about the gromacs.org_gmx-developers mailing list