Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> --- transport-helper.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/transport-helper.c b/transport-helper.c index 35023da..2e78c4d 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -309,8 +309,12 @@ static int set_helper_option(struct transport *transport, strbuf_addf(&buf, "option %s ", name); if (is_bool) strbuf_addstr(&buf, value ? "true" : "false"); - else + else if (value) quote_c_style(value, &buf, NULL, 0); + else { + strbuf_release(&buf); + return 0; + } strbuf_addch(&buf, '\n'); ret = strbuf_set_helper_option(data, &buf); -- 2.7.0.377.g4cd97dd -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html