[Bf-committers] I created a branch accidentally, but I have no 'git rights' to delete it

Brecht Van Lommel brechtvanlommel at pandora.be
Tue Dec 10 16:41:25 CET 2013


The git commit hook was configured this way by accident, it should now
be possible to delete branches again. I deleted fix-fly-center center
now to test, but anyone should be able to do the same if this happens
again.

Brecht.

On Tue, Dec 10, 2013 at 3:33 PM, Dalai Felinto <dfelinto at gmail.com> wrote:
> Hi,
>
> Short Story:
> =========
> $ git push upstream :fix-fly-center
>
> gives me the error:
>
> ```
> remote: *** Deleting a branch is not allowed in this repository
> remote: error: hook declined to update refs/heads/fix-fly-center
> To git at git.blender.org:blender.git
>  ! [remote rejected] fix-fly-center (hook declined)
> error: failed to push some refs to 'git at git.blender.org:blender.git'
> ```
>
> Can anyone with administrator rights remove this branch?
> Thanks
>
> Long Story:
> ========
> 'arc land' landed the branch in my github repository
>
> * arcanist defaults to origin for most of its operations, and since
> .arcconfig is part of our repository, I can't change it without
> arcanist itself complaining of non-committed changes in my branch. I
> think I will rename git.blender.org to origin, and my github to
> something else.
>
> After I realized what happened I did the following command following
> arcanist suggestion:
> $ git checkout -b 'fix-fly-center' 'cacaad40ac1be0dca73e26f62edc03d361cba85a'
>
> so far so good, I then did:
> $git push upstream
>
> While I should have done:
> $git push upstream fix-fly-center:master
>
> And now I ended up with a branch in git.blender.org that I cannot delete.
> It's no big harm, but it wouldn't hurt to delete the branch and
> pretend this never happened ;)
>
> Cheers,
> Dalai
> --
> blendernetwork.org/dalai-felinto
> www.dalaifelinto.com
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers


More information about the Bf-committers mailing list