"Glen Choo via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes: > + /* > + * If the environment variable is set, assume that it came from the > + * superproject and ignore the config. > + */ Might be clearer to say: If the environment variable is set, assume that it was set by an invocation of git running in a superproject with submodule.propagateBranches set and that is recursing into this repo as a submodule. Therefore, we should ignore whatever is set in this repo's config.