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
Lebot A is currently offline Lebot AFriend
Messages: 1
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: 1212
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: Sun Sep 25 00:30:45 GMT 2022

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

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

Back to the top