File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2811,7 +2811,7 @@ static int git_config_copy_or_rename_section_in_file(const char *config_filename
2811
2811
* multiple [branch "$name"] sections.
2812
2812
*/
2813
2813
if (copystr .len > 0 ) {
2814
- if (write_in_full (out_fd , copystr .buf , copystr .len ) != copystr . len ) {
2814
+ if (write_in_full (out_fd , copystr .buf , copystr .len ) < 0 ) {
2815
2815
ret = write_error (get_lock_file_path (lock ));
2816
2816
goto out ;
2817
2817
}
@@ -2873,7 +2873,7 @@ static int git_config_copy_or_rename_section_in_file(const char *config_filename
2873
2873
* logic in the loop above.
2874
2874
*/
2875
2875
if (copystr .len > 0 ) {
2876
- if (write_in_full (out_fd , copystr .buf , copystr .len ) != copystr . len ) {
2876
+ if (write_in_full (out_fd , copystr .buf , copystr .len ) < 0 ) {
2877
2877
ret = write_error (get_lock_file_path (lock ));
2878
2878
goto out ;
2879
2879
}
You can’t perform that action at this time.
0 commit comments