Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-05-08 12:47:25 +0300
committerJunio C Hamano <gitster@pobox.com>2016-05-09 22:29:08 +0300
commit896ba1d11269e6e1cbf5c2795f908da5e3e1ce29 (patch)
treeb4f27cc3588f4c15d5af75b178500ab72130fa80 /builtin
parent6e59e9c0a658c619d390ed93466e457d4b80f0fe (diff)
builtin/branch.c: use error_errno()
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')
-rw-r--r--builtin/branch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/branch.c b/builtin/branch.c
index 7b45b6bd6b..6045dca471 100644
--- a/builtin/branch.c
+++ b/builtin/branch.c
@@ -583,8 +583,7 @@ static int edit_branch_description(const char *branch_name)
branch_name, comment_line_char);
if (write_file_gently(git_path(edit_description), "%s", buf.buf)) {
strbuf_release(&buf);
- return error(_("could not write branch description template: %s"),
- strerror(errno));
+ return error_errno(_("could not write branch description template"));
}
strbuf_reset(&buf);
if (launch_editor(git_path(edit_description), &buf, NULL)) {