Git submodules and orphaned commits -


i have git repo (a) each commit orphaned commit name (branch). git repo b consumes submodule, , such holding reference sha in a. when make fresh clone of b need typical git submodule init/update incantation, don't want clone of a. want clone single orphaned commit submodule reference.

however, when try git submodule update --init --recursive --depth 1 path/to/a, git clones master instead. there way can convince clone sha care about?

if b consumes a submodule, should configuring a submodule follow branch.

that way, git submodule update --init --recursive --remote --depth 1 path/to/a should checkout branch supposed follow.


Comments

Popular posts from this blog

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -