push: --dry-run updates submodules when --recurse-submodules=on-demand
commit1aa73658405ad423127b3c14ac13e46f9ad0163a
authorBrandon Williams <bmwill@google.com>
Thu, 17 Nov 2016 18:46:03 +0000 (17 10:46 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Nov 2016 16:37:45 +0000 (23 08:37 -0800)
tree41485ecd2c2eaf2e81a0d5cda9a45fcfed1c49c1
parent250ab24ab3a35d5857855a2e00483dcd8867fdca
push: --dry-run updates submodules when --recurse-submodules=on-demand

This patch adds a test to illustrate how push run with --dry-run doesn't
actually perform a dry-run when push is configured to push submodules
on-demand.  Instead all submodules which need to be pushed are actually
pushed to their remotes while any updates for the superproject are
performed as a dry-run.  This is a bug and not the intended behaviour of
a dry-run.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5531-deep-submodule-push.sh