Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588996 - please remove git.gentoo.org/repo/gentoo.git branch titled "gentoo"
Summary: please remove git.gentoo.org/repo/gentoo.git branch titled "gentoo"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-17 15:41 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2016-07-17 16:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2016-07-17 15:41:42 UTC
I had a brain fart and accidentally did:

   git push upstream somebranch:gentoo

when I meant to write

   git push upstream somebranch:master

This created a branch "gentoo" which I didn't mean to create ( and master is now ahead of it )

However, despite being able to create branches like this by accident, there's no way for me to remove it myself:

> remote: 
> remote: FATAL -- ACCESS DENIED
> remote: Repo            repo/gentoo                                                 
> remote: User            kentnl@gentoo.org                                           
> remote: Stage           From git's update hook                                      
> remote: Ref             Branch 'gentoo'                                             
> remote: Operation       Delete ref                                                  
> remote: 
> remote: FATAL: + refs/heads/gentoo repo/gentoo kentnl@gentoo.org DENIED by fallthru
> remote: error: hook declined to update refs/heads/gentoo
> To git+ssh://git@git.gentoo.org/repo/gentoo.git
>  ! [remote rejected] gentoo (hook declined)
> error: failed to push some refs to 'git+ssh://git@git.gentoo.org/repo/gentoo.git'

Ideally branches can't be created by accident either, but that's a separate issue.

Thanks/Apologies in advance.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-07-17 16:06:13 UTC
remote: To git@github.com:gentoo/gentoo.git
remote:  - [deleted]         gentoo
To git@git.gentoo.org:repo/gentoo.git
 - [deleted]         gentoo

It is done.