branch: use non-gentle write_file for branch description
[gitweb.git] / builtin / branch.c
index 2ecde53bf838777e191926557c0c8190cdc7d09a..15232c4a428b5b458fcd974440b0e884c2db6952 100644 (file)
@@ -618,10 +618,7 @@ static int edit_branch_description(const char *branch_name)
                    "  %s\n"
                    "Lines starting with '%c' will be stripped.\n",
                    branch_name, comment_line_char);
-       if (write_file_gently(git_path(edit_description), "%s", buf.buf)) {
-               strbuf_release(&buf);
-               return error_errno(_("could not write branch description template"));
-       }
+       write_file(git_path(edit_description), "%s", buf.buf);
        strbuf_reset(&buf);
        if (launch_editor(git_path(edit_description), &buf, NULL)) {
                strbuf_release(&buf);