Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Git clone produces a non-wildcard fetch refspec since 2019-12
Git clone produces a non-wildcard fetch refspec since 2019-12 [message #1821117] Wed, 05 February 2020 22:43 Go to next message
Rice Bauer is currently offline Rice BauerFriend
Messages: 26
Registered: August 2009
Junior Member
Hi everybody,

whenever I clone a Git repo from within the 2019-12 Eclipse via "File > Import... > Projects from Git" I get an individual fetch entry in origin's remote section of the local config for each branch.

This is an extract for a remote repo that only has a master branch:

Eclipse 2019-12
[remote "origin"]
	fetch = +refs/heads/master:refs/remotes/origin/master


Eclipse 2019-09
[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*


I haven't found anything in the Egit/Jgit Changelog, nor in the forums, so is this really desired behaviour?

Might it have to do with the switch to the FileReftableDatabase of JGit as announced here?: https://wiki.eclipse.org/JGit/New_and_Noteworthy/5.6

Btw, this is a repost of my post in the Eclipse Platform Forum. I didn't find a way to move the thread. Hope, this is ok.

Best regards
Rice
Re: Git clone produces a non-wildcard fetch refspec since 2019-12 [message #1821145 is a reply to message #1821117] Thu, 06 February 2020 10:24 Go to previous messageGo to next message
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 271
Registered: July 2009
Senior Member
At least the basic jgit cli does not show this behaviour. It must be something in
combination with EGit. Any ideas, somebody?

> curl https://repo.eclipse.org/content/groups/releases//org/eclipse/jgit/org.eclipse.jgit.pgm/5.6.0.201912101111-r/org.eclipse.jgit.pgm-5.6.0.201912101111-r.sh -o jgit.sh
...
> chmod +x jgit.sh
> ./jgit.sh --version
jgit version 5.6.0.201912101111-r
> ./jgit.sh clone https://github.com/chalstrick/dondalfi.git
Cloning into 'dondalfi'...
remote: Enumerating objects: 7
remote: Counting objects: 100% (7/7)
remote: Compressing objects: 100% (5/5)
Receiving objects:      100% (483/483)
Resolving deltas:       100% (162/162)
Checking out files:     100% (8/8)

> cat dondalfi/.git/config
[core]
        repositoryformatversion = 0
        filemode = true
        logallrefupdates = true
        precomposeunicode = true
[remote "origin"]
        url = https://github.com/chalstrick/dondalfi.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master
>


Ciao
Chris
Re: Git clone produces a non-wildcard fetch refspec since 2019-12 [message #1821211 is a reply to message #1821145] Fri, 07 February 2020 09:11 Go to previous messageGo to next message
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 271
Registered: July 2009
Senior Member
I think this is fixed by https://git.eclipse.org/r/c/157084/ .

Ciao
Chris
Re: Git clone produces a non-wildcard fetch refspec since 2019-12 [message #1821261 is a reply to message #1821211] Sun, 09 February 2020 09:32 Go to previous messageGo to next message
Rice Bauer is currently offline Rice BauerFriend
Messages: 26
Registered: August 2009
Junior Member
Hey Christian,

that looks very much like it, thank you!

Do you know how to find out the releas date or version with Eclipse?
Re: Git clone produces a non-wildcard fetch refspec since 2019-12 [message #1821276 is a reply to message #1821261] Mon, 10 February 2020 08:45 Go to previous messageGo to next message
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 271
Registered: July 2009
Senior Member
Currently it's not in any build. But a build was triggered and it should be in a nightly build soon. Check this site https://download.eclipse.org/egit/updates-nightly/ for updates of the org.eclipse.egit packages from today. When you see a new build you can update your egit with instructions on that site.

Ciao
Chris
Re: Git clone produces a non-wildcard fetch refspec since 2019-12 [message #1823891 is a reply to message #1821276] Fri, 03 April 2020 13:52 Go to previous message
Rice Bauer is currently offline Rice BauerFriend
Messages: 26
Registered: August 2009
Junior Member
I just wanna confirm that it is fixed in the 2020-03 release.
Thanks to everybody involved in that!
Previous Topic:Cannot lock due to index.lock not removed after crash
Next Topic:getXDGConfigHome fails with user.home resolved to ?
Goto Forum:
  


Current Time: Sat Jun 12 12:33:59 GMT 2021

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

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

Back to the top