Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » JGit DFS repository with HEAD pointing to main instead of master
JGit DFS repository with HEAD pointing to main instead of master [message #1843102] Thu, 15 July 2021 14:29 Go to next message
Tobel A is currently offline Tobel AFriend
Messages: 2
Registered: July 2021
Junior Member
Hello,

I noticed the create method in DFSRepository class is explicitly pointing the HEAD of a new repository to "refs/heads/master". Does JGit support setting the default HEAD values of a new empty repository to "refs/heads/main"?
I want all new commits made inside a new repo to happen on a "main" branch instead of a "master" branch by default (without any config setups done by the user).
Re: JGit DFS repository with HEAD pointing to main instead of master [message #1844461 is a reply to message #1843102] Tue, 14 September 2021 13:31 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
see these changes which are available since JGit 5.11.0
https://git.eclipse.org/r/c/jgit/jgit/+/175297/7
Previous Topic:Blobless clones fail in Eclipse/Egit
Next Topic:How can google gerrit project to be clone so fast?
Goto Forum:
  


Current Time: Sat Apr 27 03:30:32 GMT 2024

Powered by FUDForum. Page generated in 0.03150 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top