Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOC-647

Git submodule clone fails for Dublin and El Alto

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • Dublin Release, El Alto Release
    • Submodule Integration
    • None

       The ssh git clone of gerrit doc repo works fine without submodules.

       With submodules cloning fails using following commands:

      git clone --branch elalto --recursive "https://gerrit.onap.org/r/doc"
      
      #or
      
      git clone --branch elalto --recurse-submodules ssh://$lfid@gerrit.onap.org:29418/doc

       Error Message:

      error: submodule git dir '/home/jakob/test/doc/.git/modules/docs/submodules/appc/deployment.git' is inside git dir '/home/jakob/test/doc/.git/modules/docs/submodules/appc'
      fatal: refusing to create/use '/home/jakob/test/doc/.git/modules/docs/submodules/appc/deployment.git' in another submodule's git dir
      Failed to clone 'docs/submodules/appc/deployment.git' a second time, aborting
      

       Basically the problem is that a submodule is created directly in another submodule git direction- which does not seem to be allowed.

      For cloning and building the documentation with submodules locally the module appc/deployment.git can be removed from the conf.py file but thats is not a good workaround.

       

            sofiawallin sofiawallin
            jakobkrieg jakobkrieg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: