Skip to content

Commit 60cd66f

Browse files
stefanbellergitster
authored andcommitted
push: change submodule default to check
When working with submodules, it is easy to forget to push the submodules. The setting 'check', which checks if any existing submodule is present on at least one remote of the submodule remotes, is designed to prevent this mistake. Flipping the default to check for submodules is safer than the current default of ignoring submodules while pushing. Signed-off-by: Stefan Beller <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2632c89 commit 60cd66f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/push.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static int deleterefs;
2222
static const char *receivepack;
2323
static int verbosity;
2424
static int progress = -1;
25-
static int recurse_submodules = RECURSE_SUBMODULES_DEFAULT;
25+
static int recurse_submodules = RECURSE_SUBMODULES_CHECK;
2626
static enum transport_family family;
2727

2828
static struct push_cas_option cas;

0 commit comments

Comments
 (0)