• Brandon Williams's avatar
    push: fix --dry-run to not push submodules · 0301c821
    Brandon Williams authored
    Teach push to respect the --dry-run option when configured to
    recursively push submodules 'on-demand'.  This is done by passing the
    --dry-run flag to the child process which performs a push for a
    submodules when performing a dry-run.
    
    In order to preserve good user experience, the additional check for
    unpushed submodules is skipped during a dry-run when
    --recurse-submodules=on-demand.  The check is skipped because the submodule
    pushes were performed as dry-runs and this check would always fail as the
    submodules would still need to be pushed.
    Signed-off-by: default avatarBrandon Williams <bmwill@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    0301c821
submodule.h 2.97 KB