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:
authorJunio C Hamano <gitster@pobox.com>2017-11-28 07:38:33 +0300
committerJunio C Hamano <gitster@pobox.com>2017-11-28 07:38:33 +0300
commitb201e96f94f04d6316cf8c3ce4abed8408fb0857 (patch)
treeabc356ebc62c0cb1416ed849e934b80734655b4e
parent7bc77766e127d94afe67a3fd900105514b6659dd (diff)
parent782c030ea21f02a5dfab3fd023e14084ebeff4dc (diff)
Merge branch 'rs/config-write-section-fix' into maint
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()
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index adb7d7a3e5..c38401a750 100644
--- a/config.c
+++ b/config.c
@@ -2315,7 +2315,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;