submodule: don't add submodule as odb for push
[gitweb.git] / submodule.c
index 4486ff664b537061e3d9af2d7f6d1395d40b336c..d9c06767a168cbe48906389a2c8af2879d9cf5eb 100644 (file)
@@ -1023,9 +1023,6 @@ static int push_submodule(const char *path,
                          const struct string_list *push_options,
                          int dry_run)
 {
-       if (add_submodule_odb(path))
-               return 1;
-
        if (for_each_remote_ref_submodule(path, has_remote, NULL) > 0) {
                struct child_process cp = CHILD_PROCESS_INIT;
                argv_array_push(&cp.args, "push");