I have two git projects. One depends on a subfolder of another repository.
Here's how the folders are setup.
repoA
    .git
    folderA1/
    folderA2/
repoB
    .git
    folderB1/
    folderB1/folderB11
    folderB2/
What I want would like to achieve is the following
repoA
    .git
    folderA1/
    folderA2/
    folderB11   <<<< This maps to the repoB on branch name "blah"
repoB
    .git
    folderB1/
    folderB1/folderB11
    folderB2/
In repoA, some files in folderA1 might reference the ones in folderB11. repoA contains python modules that reference files in folderB11.  Similarly, repoB also contains python modules that reference files in folderB11.
I looked at git subtree, but it doesn't appear to sync both folder.
One option is to create folderB11 as a repository and add it a subtree to repoA and repoB, but I would rather not have a third repository as it's going to be a pain to maintain the code.  Also, it's not ideally an option to have a third repository as folderB11 should be located in repoB to ensure accuracy with the rest of the project.
Is there a way to synchronize a subfolder of a git repo with a subfolder of another git repo?
 
     
     
     
     
    