Skip to content

Git submodules #77

@ThomasBush

Description

@ThomasBush

I am working on setting up vagrant + chef + magento and found an open source solution that was very close to what I needed. I forked a repository which uses submodules. I also forked one of the submodules. I made changes to this submodule as well as the main repo and pushed back to my forks of each. One of the changes to my fork of the main repo was to the .gitmodules file, in an effort to ensure my forked submodule would be used by my forked main project. This link is somehow incorrect as the original submodule is pulled every time instead of my fork.

.gitmodules

[submodule "recipes/cookbooks/vagrant_magento"]
    path = recipes/cookbooks/vagrant_magento
    url = https://github.com/HexArmor/vagrant_magento

Forked Repos

Attempts at debugging

I used this SO answer as well as this SO question as my troubleshooting guides. Following the various answers in each proved unsuccessful.

Looking at the specific submodule section of my fork's git repo appears to prove I have linked these correctly. Clicking on vagrant_magento or the included reference tag both land you on my submodules fork which is what I want to be used here. Yet this page says it has not been updated in over a year, which confuses me and pull down the repo and running git submodule update --init still pulls in the old submodule.

Any help would be greatly appreciated!

Thanks,
Thomas Bush

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions