gitweb: Print commit message without title in commitdiff only if there is any
[gitweb.git] / cache-tree.c
index 323c68a6709f30312e0dfb0fd60fcd7e69cd710b..d388848dd25db917e9bac5a8fd95cd89d214f5d8 100644 (file)
@@ -344,12 +344,8 @@ static int update_one(struct cache_tree *it,
 #endif
        }
 
-       if (dryrun) {
-               unsigned char hdr[200];
-               int hdrlen;
-               write_sha1_file_prepare(buffer, offset, tree_type, it->sha1,
-                                       hdr, &hdrlen);
-       }
+       if (dryrun)
+               hash_sha1_file(buffer, offset, tree_type, it->sha1);
        else
                write_sha1_file(buffer, offset, tree_type, it->sha1);
        free(buffer);