summaryrefslogtreecommitdiff
path: root/receive-pack.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 /receive-pack.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 'receive-pack.c')
-rw-r--r--receive-pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/receive-pack.c b/receive-pack.c
index eae31e370d..2a3db16d68 100644
--- a/receive-pack.c
+++ b/receive-pack.c
@@ -92,7 +92,7 @@ static int run_update_hook(const char *refname,
case -ERR_RUN_COMMAND_WAITPID_WRONG_PID:
return error("waitpid is confused");
case -ERR_RUN_COMMAND_WAITPID_SIGNAL:
- return error("%s died of signal\n", update_hook);
+ return error("%s died of signal", update_hook);
case -ERR_RUN_COMMAND_WAITPID_NOEXIT:
return error("%s died strangely", update_hook);
default:
@@ -158,7 +158,7 @@ static int update(struct command *cmd)
if (run_update_hook(name, old_hex, new_hex)) {
unlink(lock_name);
cmd->error_string = "hook declined";
- return error("hook declined to update %s\n", name);
+ return error("hook declined to update %s", name);
}
else if (rename(lock_name, name) < 0) {
unlink(lock_name);