mainSavannah Administration - Support: sr #107682, deleting a remote branch in git

 
 

sr #107682: deleting a remote branch in git

Submitter:  Nikos Mavrogiannopoulos <nmav>
Submitted:  Sat 07 May 2011 09:34:14 PM UTC
   
 
Category:  Source code repositories - developer access Priority:  5 - Normal
Severity:  3 - Normal Status:  Need Info
Privacy:  Public Assigned to:  rwp
Operating System:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 26 Apr 2017 03:32:09 AM UTC, comment #19: 

Hello,

With no further comments received, I'm closing this item.

regards,
 - assaf

Assaf Gordon <agn>
Site Administrator
Sat 18 Feb 2017 01:15:42 AM UTC, comment #18: 

(Picking up an old ticket, about deleting remote branches)

Hello Nikos,

With git-2.10.2 (on the client side),
I'm able to delete branches on savannah's server:

    $ git push origin --delete my-other-branch

This will not work for 'master', only for other branches.

Please confirm if it works for you.

regards,
 - assaf

Assaf Gordon <agn>
Site Administrator
Thu 28 Apr 2016 04:31:05 AM UTC, comment #17: 

Ah... Okay.  This has already been discussed a few times.  It is generally in agreement that it is a good thing.  But it hasn't been implemented yet.  I will find the other ticket number and link it here once found.

Bob Proulx <rwp>
Site Administrator
Tue 26 Apr 2016 06:59:12 AM UTC, comment #16: 

I add new features in feature branches like "simpler-decoding" in the libtasn1 project. However I cannot fast forward this branch as I rewrite the original patch:

$ git push -f
Total 0 (delta 0), reused 0 (delta 0)
remote: error: denying non-fast-forward refs/heads/simpler-decoding (you should pull first)
To ssh://git.sv.gnu.org/srv/git/libtasn1.git
 ! [remote rejected] simpler-decoding -> simpler-decoding (non-fast-forward)
error: failed to push some refs to 'ssh://git.sv.gnu.org/srv/git/libtasn1.git'


Nor I can delete the branch once it is no longer needed (merged in master).

$ git push origin :simpler-decoding
remote: * Deleting a branch is not allowed in this repository
remote: error: hook declined to update refs/heads/simpler-decoding
To ssh://git.sv.gnu.org/srv/git/libtasn1.git
 ! [remote rejected] simpler-decoding (hook declined)
error: failed to push some refs to 'ssh://git.sv.gnu.org/srv/git/libtasn1.git'

Nikos Mavrogiannopoulos <nmav>
Mon 25 Apr 2016 09:32:06 PM UTC, comment #15: 

There is no problem reopening a ticket if there is actually something to do.  I read through the ticket and it appeared that the issues had been handled.  No?

If not could someone make a summary of the problem?  What is the problem and what do people want done?

Bob Proulx <rwp>
Site Administrator
Mon 25 Apr 2016 09:19:14 PM UTC, comment #14: 

I don't quite understand the reasoning behind the closing of this issue. Was it resolved? Anyway the only way to resolve issues with savanah is by taking projects from it. It sounds harsh but if I cannot delete branches, nor fast forward in git it means I cannot work on feature branches.

Nikos Mavrogiannopoulos <nmav>
Mon 25 Apr 2016 12:24:43 AM UTC, comment #13: 

It has been two years since more info was requested. None has been provided. I can only assume this has all been handled. Closing.

Bob Proulx <rwp>
Site Administrator
  Spam posted by tanchick
Fri 09 Aug 2013 08:45:52 PM UTC, comment #11: 

Can we close this out?

John Schmidt <johnschmidt4>
Thu 05 Jul 2012 02:28:20 PM UTC, comment #10: 

I don't think that fast forward is a good thing. Let's wait until the rep. manager then. Karl hello. I know and I feel guilty for not helping, but I'm really out of time. If helping now and then is acceptable I could, but I cannot really commit into anything at this moment.

Nikos Mavrogiannopoulos <nmav>
Wed 04 Jul 2012 10:33:38 PM UTC, comment #9: 

Nikos - by the way, if you have any interest in adding another hat to your tasks and helping with savannah administration, that'd surely be welcome.

best,
karl

Adrian Mariano <adrianm>
Tue 03 Jul 2012 10:51:19 PM UTC, comment #8: 

Soon, coming in the next two months, we'll have a repository manager, so this won't be as much of a problem with git.

In the meantime, I could just disable the nofastforwardcommit stuff, if you'd like.

Michael J. Flickinger <mjflick>
Tue 03 Jul 2012 05:55:46 PM UTC, comment #7: 

The issues isn't just a branch. I often need to reorganize delete or replace old branches and the savannah git doesn't allow this stuff. For example I wanted to reset the gnutls_3_0_x branch because it got out-of-sync with master, and this is not possible. Neither a fast forward commit is allowed, nor can I delete the branch to replace it. This is utterly annoying. Also making a typo in the tag cannot be undone (tags cannot be deleted as well).

It would really be nice of deletion was allowed without opening a support request.

btw. It doesn't seem to be an issue with git but rather there is a hook (script) that prevents deletion of branches and tags.

remote: * Deleting a tag is not allowed in this repository
remote: error: hook declined to update refs/tags/gnutls_3_0_21
To ssh://git.sv.gnu.org/srv/git/gnutls.git
 ! [remote rejected] gnutls_3_0_21 (hook declined)
error: failed to push some refs to 'ssh://git.sv.gnu.org/srv/git/gnutls.git'

Nikos Mavrogiannopoulos <nmav>
Tue 03 Jul 2012 05:00:20 PM UTC, comment #6: 

Branch (finston_0) is now manually deleted.  You "should" have been able to delete this yourself, via git, but something (git-wise) was buggy.

I apologize for the delay.

Let me know if it's OK to close this issue now.

Michael J. Flickinger <mjflick>
Tue 03 Jul 2012 07:08:57 AM UTC, comment #5: 

Is there any way to help with that? Really it is awkward to wait a year to delete a branch or a tag. Is there any way to help solving it without moving the project out of savanah?

Nikos Mavrogiannopoulos <nmav>
Fri 12 Aug 2011 03:57:20 PM UTC, comment #4: 

Hello is there any update on the issue?

Nikos Mavrogiannopoulos <nmav>
Mon 23 May 2011 04:40:56 PM UTC, comment #3: 

Thanks,

Investigating issue.

Michael J. Flickinger <mjflick>
Mon 23 May 2011 06:39:56 AM UTC, comment #2: 

It is gnutls. I tried to delete the branch "finston_0".

Anonymous
Sun 22 May 2011 11:41:58 PM UTC, comment #1: 

This puzzles me.

You should be able to still remove remote branches in git.

I'll need to explore the issue with your repository further.

Which project/branch is this?

Thanks

Michael J. Flickinger <mjflick>
Sat 07 May 2011 09:34:14 PM UTC, original submission:  

The git support page at http://savannah.gnu.org/maintenance/UsingGit describes a way to delete a remote branch. However trying to delete using that method displays:
"remote: * Deleting a branch is not allowed in this repository
remote: error: hook declined to update refs/heads/xxx"

for the gnutls git repository.

Nikos Mavrogiannopoulos <nmav>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by agn (Posted a comment)
  • -email is unavailable- added by rwp (Posted a comment)
  • -email is unavailable- added by tanchick (Posted a comment)
  • -email is unavailable- added by adrianm (Posted a comment)
  • -email is unavailable- added by mjflick (Posted a comment)
  • -email is unavailable- added by nmav (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-04-26 agn Open/ClosedOpen Closed
    2016-04-25 rwp StatusDone Need Info
        Open/ClosedClosed Open
    2016-04-25 rwp StatusIn Progress Done
        Assigned tomjflick rwp
        Open/ClosedOpen Closed
    2011-05-23 mjflick StatusNeed Info In Progress
    2011-05-22 mjflick StatusNone Need Info
        Assigned toNone mjflick

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code