Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/config-write-section-fix' into maint
author
Junio C Hamano
<gitster@pobox.com>
Tue, 28 Nov 2017 04:38:33 +0000
(13:38 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 28 Nov 2017 04:38:33 +0000
(13:38 +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
patch
|
blob
|
history
raw
(from parent 1:
7bc7776
)
diff --git
a/config.c
b/config.c
index adb7d7a3e5ee164d24f1d2420677a8ad5b61e49f..c38401a75048d84283d977bd8663d34a07e2f237 100644
(file)
--- 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;