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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -