Merge git://git.bogomips.org/git-svn
[gitweb.git] / http-push.c
index e16a0ad3f97ef49930a599d3a800a0c7fad317e0..45e8a69e2d6b83f5a1564e7d1fe40d783d87ae3e 100644 (file)
@@ -2327,7 +2327,7 @@ int main(int argc, char **argv)
        new_refs = 0;
        for (ref = remote_refs; ref; ref = ref->next) {
                char old_hex[60], *new_hex;
-               const char *commit_argv[4];
+               const char *commit_argv[5];
                int commit_argc;
                char *new_sha1_hex, *old_sha1_hex;
 
@@ -2407,6 +2407,7 @@ int main(int argc, char **argv)
                        commit_argv[3] = old_sha1_hex;
                        commit_argc++;
                }
+               commit_argv[commit_argc] = NULL;
                init_revisions(&revs, setup_git_directory());
                setup_revisions(commit_argc, commit_argv, &revs, NULL);
                revs.edge_hint = 0; /* just in case */