name-rev: refactor logic to see if a new candidate is a better name
[gitweb.git] / builtin / push.c
index 9307ad56a9fb91455eaf06371382b1431d115598..5c22e9f2e56b7d8049890e44f4c6fb63b16f8357 100644 (file)
@@ -568,6 +568,8 @@ int cmd_push(int argc, const char **argv, const char *prefix)
                flags |= TRANSPORT_RECURSE_SUBMODULES_CHECK;
        else if (recurse_submodules == RECURSE_SUBMODULES_ON_DEMAND)
                flags |= TRANSPORT_RECURSE_SUBMODULES_ON_DEMAND;
+       else if (recurse_submodules == RECURSE_SUBMODULES_ONLY)
+               flags |= TRANSPORT_RECURSE_SUBMODULES_ONLY;
 
        if (tags)
                add_refspec("refs/tags/*");