X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=http-push.c;h=f492a5d36678a996ff2c665cacc8cfc69eb10f6f;hb=0790a42a502701c7b58e9ad4123e46bf46bbf319;hp=114d01bced1cb3f9a906c7c0df85bf5cd2b811e0;hpb=6feba7cb744d5a19472ea0bf5b337ad8a32acf80;p=git.git diff --git a/http-push.c b/http-push.c index 114d01bc..f492a5d3 100644 --- a/http-push.c +++ b/http-push.c @@ -1733,9 +1733,9 @@ static struct object_list **process_tree(struct tree *tree, while (entry) { struct tree_entry_list *next = entry->next; if (entry->directory) - p = process_tree(entry->item.tree, p, &me, entry->name); + p = process_tree(lookup_tree(entry->sha1), p, &me, entry->name); else - p = process_blob(entry->item.blob, p, &me, entry->name); + p = process_blob(lookup_blob(entry->sha1), p, &me, entry->name); free(entry); entry = next; } @@ -2498,6 +2498,7 @@ int main(int argc, char **argv) commit_argv[3] = old_sha1_hex; commit_argc++; } + init_revisions(&revs); setup_revisions(commit_argc, commit_argv, &revs, NULL); free(new_sha1_hex); if (old_sha1_hex) {