зеркало из https://github.com/microsoft/git.git
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()
This commit is contained in:
Коммит
51affbd52d
2
config.c
2
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче