mainSavannah Administration - Support: sr #110462, Renaming from master to main...

 
 

sr #110462: Renaming from master to main branch in git repository

Submitter:  Heiko Stamer <stamer>
Submitted:  Sat 20 Mar 2021 12:14:24 PM UTC
   
 
Category:  Source code repositories - developer access Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  bandali
Operating System:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 03 May 2021 04:14:15 AM UTC, comment #1: 

Hello,

Apologies for the delay in getting to your request.

I changed HEAD to refer to the 'main' branch, and deleted the 'master'
branch per your request.  A fresh clone of the repository should
default to the 'main' branch now.

Amin Bandali <bandali>
Site Administrator
Sat 20 Mar 2021 12:14:24 PM UTC, original submission:  

Recently I've renamed the current branch from "master" to main in the git repository of my project LibTMCG. However, I cannot delete the old "master" branch:

$ git push origin --delete 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 confusion.
remote: error:
remote: error: You can set 'receive.denyDeleteCurrent' configuration variable to
remote: error: 'warn' or 'ignore' in the remote repository to allow deleting the
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 git.sv.gnu.org:/srv/git/libtmcg.git
 ! [remote rejected] master (deletion of the current branch prohibited)

Please, can you delete the master branch?

Heiko Stamer <stamer>

 

(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 bandali (Posted a comment)
  • -email is unavailable- added by stamer (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-03 bandali StatusNone Done
        Assigned toNone bandali
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code