This got bigger than expected, but I am happier with the results. The meat is found in the last patch. (At least what I am interested in; others may be more interested in the second patch which could be argued to be a real bug fix to be merged down to maint.) Thanks Junio for the thourough review of the first patches, Stefan Stefan Beller (7): t7406: future proof tests with hard coded depth submodule update: respect depth in subsequent fetches submodule update: narrow scope of local variable submodule--helper: fix usage string for relative-path submodule-config: keep configured branch around submodule--helper: add remote-branch helper submodule update: allow '.' for branch value builtin/submodule--helper.c | 48 ++++++++++++++++++++++++++++-- git-submodule.sh | 11 +++---- submodule-config.c | 11 ++++++- submodule-config.h | 1 + t/t7406-submodule-update.sh | 71 +++++++++++++++++++++++++++++++++++++++------ 5 files changed, 125 insertions(+), 17 deletions(-) -- 2.9.2.472.g1ffb07c.dirty -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html