Adding a submodule to your projectĪdding a new submodule to your project is simple, just right-click on a blank area of the sidebar and select ‘New Submodule’ (or select it from the Repository menu). The most common reason for wanting to do this is that your project has dependencies on other code bases (libraries for example), and you want to track those from their original sources rather than duplicating the files within your own repository.įor the sake of brevity from here on I’ll use the term ‘submodule’ to mean ‘subrepository’ as well, unless I’m talking about a Mercurial-specific feature. The terms may be different, but they refer to the same concept that of nesting other repositories within the folder structure of your own repository. ![]() : Command "git config -get submodule.url" returned status code 1:Īt .CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2016)Īt .CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1984)Īt .CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1980)Īt .CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1612)Īt .CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1624)Īt .CliGitAPIImpl.getSubmoduleUrl(CliGitAPIImpl.java:1224)Īt .CliGitAPIImpl$7.execute(CliGitAPIImpl.java:1150)Īt .(SubmoduleOption.java:108)Ĭaused: java.io.IOException: Could not perform submodule updateĪt .(SubmoduleOption.java:113)Īt .checkout(GitSCM.java:1264)Īt (AbstractProject.java:1208)Īt $faultCheckout(AbstractBuild.java:574)Īt (SCMCheckoutStrategy.java:86)Īt $n(AbstractBuild.java:499)Īt (Run.java:1794)Īt (FreeStyleBuild.java:43)Īt (ResourceController.java:97)Īt (Executor.Using submodules and subrepositories By Steve on February 1, 2012Ī headline feature of SourceTree 1.3 is the support for submodules (in Git) and subrepositories (in Mercurial). ![]() > git config -get submodule.url # timeout=10 > git submodule update -init -recursive meta-security > git submodule update -init -recursive meta-ti > git submodule update -init -recursive meta-xilinx > git submodule update -init -recursive meta-virtualization > git submodule update -init -recursive meta-openembedded > git submodule update -init -recursive poky gitmodules -get-regexp ^submodule\.(. )\.url # timeout=10 > git checkout -f 4511e708dedab56c7b23324e0e21afb3666fbaecĬommit message: "added git submodule info to inject in /etc/jenkins.build file" > git config core.sparsecheckout # timeout=10 ![]() > git rev-parse refs/remotes/sources/feature/gitsubmodules^ # timeout=10Ĭhecking out Revision 4511e708dedab56c7b23324e0e21afb3666fbaec (refs/remotes/sources/feature/gitsubmodules) > git config -add refs/heads/ :refs/remotes/sources/ # timeout=10įetching upstream changes from GIT_SSH to set credentials > git fetch -tags -progress refs/heads/ :refs/remotes/sources/ ![]() It has been configured to "Use credentials from default remote of parent repository" in advanced sub-modules behaviour.Ĭloning repository git init /media/Data/workspace//sources # timeout=10įetching upstream changes from git -version # timeout=10 However one GIT submodule is proprietary and needs the use of GIT_SSH to set the credentials. When trying to checkout a Git project with several submodules, I get an error on one of them.Īll public available GIT submodules are checked out correctly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |