Merge branch 'rs/config-write-section-fix'
authorJunio C Hamano <gitster@pobox.com>
Mon, 27 Nov 2017 02:06:38 +0000 (11:06 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Nov 2017 02:06:38 +0000 (11:06 +0900)
There was a recent semantic mismerge in the codepath to write out a
section of a configuration section, which has been corrected.

* rs/config-write-section-fix:
  config: flip return value of write_section()

config.c

index 731b9b1..676786a 100644 (file)
--- a/config.c
+++ b/config.c
@@ -2329,7 +2329,7 @@ static ssize_t write_section(int fd, const char *key)
        struct strbuf sb = store_create_section(key);
        ssize_t ret;
 
-       ret = write_in_full(fd, sb.buf, sb.len) == sb.len;
+       ret = write_in_full(fd, sb.buf, sb.len);
        strbuf_release(&sb);
 
        return ret;