Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368536

Summary: Cannot update submodules with relative paths
Product: [Technology] JGit Reporter: Sascha Scholz <sascha.scholz>
Component: JGitAssignee: Kevin Sawicki <kevin>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 1.3   
Target Milestone: 1.3   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Sascha Scholz CLA 2012-01-13 06:50:38 EST
In case a submodule points to a path relative to the master Git repo, the SubmoduleUpdateCommand fails because it tries to access the relative path starting from the submodule repo and not from the master repo.

msysgit resolves all relative paths when submodule init is called. I'll upload a patch that solves the issue for the SubmoduleInitCommand (at least for my use-case). Due to lack of knowledge it's for sure not perfect, but may be used as a base for the real implementation.
Comment 1 Sascha Scholz CLA 2012-01-13 07:07:18 EST
Patch uploaded to Gerrit: http://egit.eclipse.org/r/#change,4951
Comment 2 Sascha Scholz CLA 2012-01-16 15:42:21 EST
Kevin uploaded a new change: http://egit.eclipse.org/r/#change,4962
Comment 3 Kevin Sawicki CLA 2012-02-23 20:26:48 EST
This was fixed and released in 1.3