aboutsummaryrefslogtreecommitdiff
path: root/transport-helper.c
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2012-04-29 20:28:45 -0400
committerJunio C Hamano <gitster@pobox.com>2012-04-30 15:45:51 -0700
commit82247e9bd5f7c90c4eac9674fb7518845cd3e432 (patch)
tree09fd8632c7e1ec214968eec58ded00184869646f /transport-helper.c
parent9768cafe681a7844d5a1d067991053b25db83bbb (diff)
downloadgit-82247e9bd5f7c90c4eac9674fb7518845cd3e432.tar.gz
git-82247e9bd5f7c90c4eac9674fb7518845cd3e432.tar.xz
remove superfluous newlines in error messages
The error handling routines add a newline. Remove the duplicate ones in error messages. Signed-off-by: Pete Wyckoff <pw@padd.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-helper.c')
-rw-r--r--transport-helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/transport-helper.c b/transport-helper.c
index f6b3b1fb7..61c928f6c 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -199,7 +199,7 @@ static struct child_process *get_helper(struct transport *transport)
data->import_marks = strbuf_detach(&arg, NULL);
} else if (mandatory) {
die("Unknown mandatory capability %s. This remote "
- "helper probably needs newer version of Git.\n",
+ "helper probably needs newer version of Git.",
capname);
}
}
@@ -599,7 +599,7 @@ static void push_update_ref_status(struct strbuf *buf,
status = REF_STATUS_REMOTE_REJECT;
refname = buf->buf + 6;
} else
- die("expected ok/error, helper said '%s'\n", buf->buf);
+ die("expected ok/error, helper said '%s'", buf->buf);
msg = strchr(refname, ' ');
if (msg) {