Hi,

The repositories I had imported using the import repos rake task all had 
the recieve.denyNonFastForwards property set (projects created in the 
GitLab inferface do not have this set). Does anyone know how I can prevent 
this from being set by the import rake task? 

Thanks,
Gordon

On Wednesday, 16 September 2015 16:54:16 UTC+1, Gordon Bonthron wrote:
>
> In this case, we are trying to squash a branches commits, and then force 
> push this to a branch. This is then rejected, when as I understand the 
> permission model, it should be allowed.
>
> After your suggestion, we have also tried to rebase a branch and force 
> push it, however this is also rejected.
>
> On Wednesday, 16 September 2015 16:39:19 UTC+1, Jeroen de Neef wrote:
>>
>> Try to get the other clients to pull and rebase, then ask them to push.
>> Op 16 sep. 2015 17:36 schreef "Gordon Bonthron" <g.bon...@gmail.com>:
>>
>>> Hello all,
>>>
>>> I've got a new install from Omnibus of the latest GitLab, however I'm 
>>> having some issues. I've imported a number of repos using the rake task, 
>>> however we are now finding that people cannot force push to non-protected 
>>> branches. Their commits are rejected with the following message:
>>>
>>> remote: error: denying non-fast-forward refs/heads/branch (you should 
>>> pull first)
>>>
>>> As I understand it from the permission model, users with developer 
>>> access should be able to force push to non protected branches, which these 
>>> are. From looking around, this can be due to receive.denyNonFastForwards 
>>> being set to true. If this is the case here, why is this the default for 
>>> GitLab projects, given the permission model suggests entirely different 
>>> behaviour, and how can I change this on all current and future repos?
>>>
>>> Thanks all!
>>> Gordon
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "GitLab" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to gitlabhq+u...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/gitlabhq/923864ef-3fca-49bb-99ff-dfe693a1758b%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/gitlabhq/923864ef-3fca-49bb-99ff-dfe693a1758b%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/dcf4fc23-dddc-42de-a30e-c350c4e5e29d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to