gitintel-edison

Error: "git: 'submodule' is not a git command" on Intel Edison and git 2.0.1


When i try using git submodules and type the usual command git submodule on my Intel Edison running Yocto Linux and git 2.0.1, I just get the following error message:

$> git submodule init
git: 'submodule' is not a git command. See 'git --help'

System version is:

$> uname -r
3.10.17-poky-edison+
$> git --version
git version 2.0.1
$> configure_edison --version
159

No tracks of that error on google.

Is there an extra package to install ? Or is it because of git 2.0.1 ?

On my Ubuntu (git 1.9.1) these commands work just fine.


Solution

  • Yes, the Git on Edison might be a light weight version. As mentioned by msw in the comments, the best option is to build git from source. But I believe the next version of Yocto package might come with a new version of git.