Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368536 - Cannot update submodules with relative paths
Summary: Cannot update submodules with relative paths
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 1.3   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: 1.3   Edit
Assignee: Kevin Sawicki CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-13 06:50 EST by Sascha Scholz CLA
Modified: 2012-02-23 20:26 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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