Code

fast-import: Fix argument order to die in file_change_m
authorJulian Phillips <julian@quantumfyre.co.uk>
Sat, 20 Oct 2007 16:15:38 +0000 (17:15 +0100)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 21 Oct 2007 01:43:35 +0000 (21:43 -0400)
The arguments to the "Not a blob" die call in file_change_m were
transposed, so that the command was printed as the type, and the type
as the command.  Switch them around so that the error message comes
out correctly.

Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c

index 078079d404d8245d73ea8ef36d764f2bb311d0a9..c07e3d8ef0d0eb8b1a50d2966579887b9add4099 100644 (file)
@@ -1859,7 +1859,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)