commit.c: "Merge" fix in pretty_print_commit.

Earlier, f2d4227530499db3e273ae84f30adfd4b70791c6 commit broke Merge:
lines for unabbreviated case.  Do not emit extra dots if we do not
abbreviate.

Signed-off-by: Junio C Hamano <junkio@cox.net>
diff --git a/commit.c b/commit.c
index 97205bf..67e11d7 100644
--- a/commit.c
+++ b/commit.c
@@ -438,13 +438,13 @@
 
 	while (parent) {
 		struct commit *p = parent->item;
+		const char *hex = abbrev
+			? find_unique_abbrev(p->object.sha1, abbrev)
+			: sha1_to_hex(p->object.sha1);
+		char *dots = (abbrev && strlen(hex) != 40) ? "..." : "";
 		parent = parent->next;
 
-		offset += sprintf(buf + offset,
-				  abbrev ? " %s..." : " %s",
-				  abbrev
-				  ? find_unique_abbrev(p->object.sha1, abbrev)
-				  : sha1_to_hex(p->object.sha1));
+		offset += sprintf(buf + offset, " %s%s", hex, dots);
 	}
 	buf[offset++] = '\n';
 	return offset;