deleting remote gitolite branch

1,064 views
Skip to first unread message

Howard Miller

unread,
May 16, 2011, 5:28:50 AM5/16/11
to gito...@googlegroups.com
I'm having trouble deleting a remote branch in my Gitolite repository.
Searching didn't seem to imply anything different from standard remote
practice, so I did:

git push myremote :my_branch

And got...

remote: + refs/heads/my_branch projectname myname DENIED by fallthru
remote: error: hook declined to update refs/heads/my_branch
To g...@my.server.com:projectname.git
! [remote rejected] my_branch (hook declined)
error: failed to push some refs to 'g...@my.server.com:projectname.git'

(Names changed to protect the guilty)

Any thoughts much appreciated!

Sitaram Chamarty

unread,
May 16, 2011, 6:06:06 AM5/16/11
to Howard Miller, gito...@googlegroups.com
On Mon, May 16, 2011 at 2:58 PM, Howard Miller
<how...@e-learndesign.co.uk> wrote:

> remote: + refs/heads/my_branch projectname myname DENIED by fallthru

you have only RW permissions on the repo/branch. You need RW+
permissions to delete a ref.

(that's not the whole story but it should do for now, you can read the
rest of it in the docs)

Howard Miller

unread,
May 16, 2011, 6:09:14 AM5/16/11
to Sitaram Chamarty, gito...@googlegroups.com

Ahh... I knew it would be something stupid on my part. Thanks (again)
for your patience.

Reply all
Reply to author
Forward
0 new messages