File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2824,7 +2824,7 @@ static int git_config_copy_or_rename_section_in_file(const char *config_filename
28242824 * multiple [branch "$name"] sections.
28252825 */
28262826 if (copystr .len > 0 ) {
2827- if (write_in_full (out_fd , copystr .buf , copystr .len ) != copystr . len ) {
2827+ if (write_in_full (out_fd , copystr .buf , copystr .len ) < 0 ) {
28282828 ret = write_error (get_lock_file_path (& lock ));
28292829 goto out ;
28302830 }
@@ -2886,7 +2886,7 @@ static int git_config_copy_or_rename_section_in_file(const char *config_filename
28862886 * logic in the loop above.
28872887 */
28882888 if (copystr .len > 0 ) {
2889- if (write_in_full (out_fd , copystr .buf , copystr .len ) != copystr . len ) {
2889+ if (write_in_full (out_fd , copystr .buf , copystr .len ) < 0 ) {
28902890 ret = write_error (get_lock_file_path (& lock ));
28912891 goto out ;
28922892 }
You can’t perform that action at this time.
0 commit comments