diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2012-04-23 19:30:25 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-24 14:55:48 -0700 |
commit | 18986d5377f19e069afffa6689d507b22f1d6c71 (patch) | |
tree | 1c8a447ed9c6126bbb55f2b3860ad89bb6c0a1ac /builtin/fetch.c | |
parent | 9665627d8cc6f0263f0019e92c67a38223804b57 (diff) | |
download | git-18986d5377f19e069afffa6689d507b22f1d6c71.tar.gz |
i18n: make warn_dangling_symref() automatically append \n
This helps remove \n from translatable strings
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r-- | builtin/fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index 65f5f9b72f..a8c3e4ceb8 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -537,8 +537,8 @@ static int prune_refs(struct refspec *refs, int ref_count, struct ref *ref_map) int result = 0; struct ref *ref, *stale_refs = get_stale_heads(refs, ref_count, ref_map); const char *dangling_msg = dry_run - ? _(" (%s will become dangling)\n") - : _(" (%s has become dangling)\n"); + ? _(" (%s will become dangling)") + : _(" (%s has become dangling)"); for (ref = stale_refs; ref; ref = ref->next) { if (!dry_run) |