summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-11-27 11:06:38 +0900
committerJunio C Hamano <gitster@pobox.com>2017-11-27 11:06:38 +0900
commit51affbd52ddc09f3af156031da8d5d29dfcd1801 (patch)
tree895461723904310b38e2ca7e935181427b5fa25a /config.c
parent12e87e29ce60120a711b367b385b91fdc1c35a57 (diff)
parent782c030ea21f02a5dfab3fd023e14084ebeff4dc (diff)
downloadgit-51affbd52ddc09f3af156031da8d5d29dfcd1801.tar.gz
Merge branch 'rs/config-write-section-fix'
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()
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 731b9b1de2..676786a028 100644
--- 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;