summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-22 17:47:10 -0800
committerJunio C Hamano <junkio@cox.net>2006-02-22 19:10:26 -0800
commitbd2afde8a38b97391b22afebf15c583fb0fffacb (patch)
treed2a4357e278f350999c1d991533016231d237abb /refs.c
parent6dc78e696b8597204b903073da932fc5ed0f419e (diff)
downloadgit-bd2afde8a38b97391b22afebf15c583fb0fffacb.tar.gz
Give no terminating LF to error() function.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index d01fc3984a..826ae7ade7 100644
--- a/refs.c
+++ b/refs.c
@@ -268,7 +268,7 @@ static int write_ref_file(const char *filename,
char term = '\n';
if (write(fd, hex, 40) < 40 ||
write(fd, &term, 1) < 1) {
- error("Couldn't write %s\n", filename);
+ error("Couldn't write %s", filename);
close(fd);
return -1;
}