[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-hackers-public] "deleting the current branch is denied"

From: Ben Pfaff
Subject: [Savannah-hackers-public] "deleting the current branch is denied"
Date: Tue, 13 Dec 2011 09:09:51 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

I pushed commits that I hadn't intended to "master" in the PSPP
repository.  OK, so I tried to delete that branch so that I can
recreate it with the correct contents, but Savannah won't let me:

    address@hidden:~/pspp/master(141)$ git push origin :master
    remote: error: By default, deleting the current branch is denied, because 
the next
    remote: error: 'git clone' won't result in any file checked out, causing 
    remote: error: 
    remote: error: You can set 'receive.denyDeleteCurrent' configuration 
variable t
    remote: error: 'warn' or 'ignore' in the remote repository to allow 
deleting th
    remote: error: current branch, with or without a warning message.
    remote: error: 
    remote: error: To squelch this message, you can set it to 'refuse'.
    remote: error: refusing to delete the current branch: refs/heads/master
    To address@hidden:/srv/git/pspp.git
     ! [remote rejected] master (deletion of the current branch prohibited)
    error: failed to push some refs to 'address@hidden:/srv/git/pspp.git'
    address@hidden:~/pspp/master(1)$ git push origin 
    Total 0 (delta 0), reused 0 (delta 0)
    remote: error: denying non-fast-forward refs/heads/master (you should pull 
    To address@hidden:/srv/git/pspp.git
     ! [remote rejected] 0c02b02272c51e3d00382cf7c9716402c047507b -> master 
    error: failed to push some refs to 'address@hidden:/srv/git/pspp.git'

Can someone please update the config for the PSPP repository to
allow me to fix this?
does say that deleting a branch should be possible.


Ben Pfaff

reply via email to

[Prev in Thread] Current Thread [Next in Thread]