commit: use generations in paint_down_to_common()
[gitweb.git] / http-push.c
index 7dcd9daf62cf07e1cc43022fde17607cef6dc147..53a217291e5d66a1a6c4ef5c37f43d563604f6da 100644 (file)
@@ -1330,7 +1330,7 @@ static int get_delta(struct rev_info *revs, struct remote_lock *lock)
        int count = 0;
 
        while ((commit = get_revision(revs)) != NULL) {
-               p = process_tree(commit->tree, p);
+               p = process_tree(get_commit_tree(commit), p);
                commit->object.flags |= LOCAL;
                if (!(commit->object.flags & UNINTERESTING))
                        count += add_send_request(&commit->object, lock);