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
Post a Comment