remote-curl: do not complain on EOF from parent git
[gitweb.git] / builtin / mv.c
index 525807722417ddf561423bd798dc15c50f2b50f9..45e57f307b799490a949d60b37f8cff1a1e5d07f 100644 (file)
@@ -231,6 +231,11 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
                                        memmove(destination + i,
                                                destination + i + 1,
                                                (argc - i) * sizeof(char *));
+                                       memmove(modes + i, modes + i + 1,
+                                               (argc - i) * sizeof(enum update_mode));
+                                       memmove(submodule_gitfile + i,
+                                               submodule_gitfile + i + 1,
+                                               (argc - i) * sizeof(char *));
                                        i--;
                                }
                        } else