Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Fetch configuration after cloning(e a fetch configAfter cloning our repository using JGit we havuration for every branch, but no wildcard config)
Fetch configuration after cloning [message #1829663] Wed, 08 July 2020 11:49 Go to next message
Martin Steinbichler is currently offline Martin SteinbichlerFriend
Messages: 3
Registered: July 2020
Junior Member
Hello Community!

We are using a git Repository on a Team Foundation Server within Eclipse.
After cloning the Repository the git configuration contains one fetch configuration per branch instead of a wildcard-rule. It looks like this:
[remote "origin"]
url = <our_URL>
fetch = +refs/heads/branch1:refs/remotes/origin/branch1
fetch = +refs/heads/branch2:refs/remotes/origin/branch2
fetch = +refs/heads/branchx:refs/remotes/origin/branchx

Our JGit core version is: 5.6.0

This configuration is sub-optimal since you have to adapt this config after deleting a branch. Otherwise the user will get an Error message, that the branch cannot be fetched. However we don't want every user to have to change their configuration whenever we delete a branch.

Is it possible to configure the repository or Eclipse in a way, that cloning the repository will create a wildcard fetch rule per default instead?

Many Thanks in advance for your help!
Best Regards,
Martin


Re: Fetch configuration after cloning [message #1829679 is a reply to message #1829663] Wed, 08 July 2020 15:10 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1184
Registered: July 2009
Senior Member
This was fixed in 5.6.1, better you upgrade to the latest release 5.8.0
Re: Fetch configuration after cloning [message #1829680 is a reply to message #1829679] Wed, 08 July 2020 15:10 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1184
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=559796
Re: Fetch configuration after cloning [message #1829708 is a reply to message #1829663] Thu, 09 July 2020 09:34 Go to previous message
Martin Steinbichler is currently offline Martin SteinbichlerFriend
Messages: 3
Registered: July 2020
Junior Member
Many Thanks for your quick responses. I will to update our EGit version. Unfortunately this is not very easy at our clients infrastructure.
Previous Topic:Unable to connect using SSH in JGit
Next Topic:Connect to Github enterprise Repository
Goto Forum:
  


Current Time: Sun Sep 26 19:05:19 GMT 2021

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

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

Back to the top