fast-import: Fix an gcc -Wuninitialized warning
[gitweb.git] / builtin / blame.c
index 962e4e3cd1ce56cc85fc1765304beb9851313c12..86100e96627e4f839fb5b627bc09ed4264c36176 100644 (file)
@@ -1424,19 +1424,6 @@ static void get_commit_info(struct commit *commit,
 
        commit_info_init(ret);
 
-       /*
-        * We've operated without save_commit_buffer, so
-        * we now need to populate them for output.
-        */
-       if (!commit->buffer) {
-               enum object_type type;
-               unsigned long size;
-               commit->buffer =
-                       read_sha1_file(commit->object.sha1, &type, &size);
-               if (!commit->buffer)
-                       die("Cannot read commit %s",
-                           sha1_to_hex(commit->object.sha1));
-       }
        encoding = get_log_output_encoding();
        message = logmsg_reencode(commit, encoding);
        get_ac_line(message, "\nauthor ",