]> asedeno.scripts.mit.edu Git - git.git/blobdiff - fast-import.c
k.org git toppage: Add link to 1.5.3 release notes.
[git.git] / fast-import.c
index a870a44e3d1a266f856738ac1242158482dc59dc..6f888f64767ee78ef198180c6e628ddb60e09191 100644 (file)
@@ -1562,7 +1562,7 @@ static int read_next_command(void)
                } else {
                        struct recent_command *rc;
 
-                       strbuf_detach(&command_buf);
+                       strbuf_detach(&command_buf, NULL);
                        stdin_eof = strbuf_getline(&command_buf, stdin, '\n');
                        if (stdin_eof)
                                return EOF;
@@ -1817,7 +1817,7 @@ static void file_change_m(struct branch *b)
        } else if (oe) {
                if (oe->type != OBJ_BLOB)
                        die("Not a blob (actually a %s): %s",
-                               command_buf.buf, typename(oe->type));
+                               typename(oe->type), command_buf.buf);
        } else {
                enum object_type type = sha1_object_info(sha1, NULL);
                if (type < 0)