Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/config-write-section-fix'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 27 Nov 2017 02:06:38 +0000
(11:06 +0900)
committer
Junio 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
patch
|
blob
|
history
raw
(from parent 1:
12e87e2
)
diff --git
a/config.c
b/config.c
index 731b9b1de2fa222be838c73b410b9619e234feec..676786a028f2c726a55694cb5af1b1781ddd6e4e 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;