Please enable fast forward for user branches

Martin Liška mliska@suse.cz
Wed Mar 24 08:13:19 GMT 2021


On 3/24/21 2:21 AM, Nick Alcock wrote:
> On 23 Mar 2021, Martin Liška verbalised:
> 
>> I would like to sync up my binutils user branches to the primary server.
>> However, I can't do rebases which makes it not usable at all:
>>
>> $ git push origin me/startswith -f
>> Enumerating objects: 257, done.
>> Counting objects: 100% (257/257), done.
>> Delta compression using up to 16 threads
>> Compressing objects: 100% (140/140), done.
>> Writing objects: 100% (140/140), 22.31 KiB | 951.00 KiB/s, done.
>> Total 140 (delta 134), reused 0 (delta 0), pack-reused 0
>> remote: Resolving deltas: 100% (134/134), completed with 117 local objects.
>> remote: error: denying non-fast-forward refs/heads/users/marxin/startswith (you should pull first)
>> To ssh://sourceware.org/git/binutils-gdb.git
>>   ! [remote rejected]         me/startswith -> users/marxin/startswith (non-fast-forward)
>> error: failed to push some refs to 'ssh://sourceware.org/git/binutils-gdb.git'
> 
> This is easy enough to work around, if annoyingly fiddly:
> 
> git push origin :users/marxin/startswith && git push origin me/startswith:users/marxin/startswith
> 
> (It's easy enough to script something that turns a forcepush into this
> by looking at the branch's configured upstream.)
> 

Thanks, works for me.

Martin


More information about the Binutils mailing list