summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1d5bf7f)
raw | patch | inline | side by side (parent: 1d5bf7f)
author | Julian Phillips <julian@quantumfyre.co.uk> | |
Sat, 20 Oct 2007 16:15:38 +0000 (17:15 +0100) | ||
committer | Shawn 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>
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 | patch | blob | history |
diff --git a/fast-import.c b/fast-import.c
index 078079d404d8245d73ea8ef36d764f2bb311d0a9..c07e3d8ef0d0eb8b1a50d2966579887b9add4099 100644 (file)
--- a/fast-import.c
+++ b/fast-import.c
} 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)