remove trailing LF in die() messages
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index 0484601f42a8aeac408d560091d341f571f231dd..c159a5fc658d762fba10800e5b828ad2f5c00b90 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -2039,7 +2039,7 @@ static void diff_fill_sha1_info(struct diff_filespec *one)
                        if (lstat(one->path, &st) < 0)
                                die("stat %s", one->path);
                        if (index_path(one->sha1, one->path, &st, 0))
-                               die("cannot hash %s\n", one->path);
+                               die("cannot hash %s", one->path);
                }
        }
        else