Following this answer on SO- I understand that following git 1.8.4, submodules can be added from anywhere ( not just toplevel). I'm on git version 2.7.4 and when I do:
git submodule add ../../../functest
I get:
Relative path can only be used from the toplevel of the working tree
I'm in opnfvdocs/docs/submodules. I want to add opnfvdocs/functest inside opnfvdocs/docs/submodules such that I have relative path in .gitmodules
The tree structure is:
github.com/OPNFV
|-opnfvdocs
|-functest
Am I missing something?
 
     
    