File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -1864,13 +1864,6 @@ int finalize_object_file(const char *tmpfile, const char *filename)
1864
1864
return 0 ;
1865
1865
}
1866
1866
1867
- static int write_buffer (int fd , const void * buf , size_t len )
1868
- {
1869
- if (write_in_full (fd , buf , len ) < 0 )
1870
- return error_errno (_ ("file write error" ));
1871
- return 0 ;
1872
- }
1873
-
1874
1867
static void hash_object_file_literally (const struct git_hash_algo * algo ,
1875
1868
const void * buf , unsigned long len ,
1876
1869
const char * type , struct object_id * oid )
@@ -2015,8 +2008,8 @@ static int write_loose_object_common(git_hash_ctx *c,
2015
2008
2016
2009
ret = git_deflate (stream , flush ? Z_FINISH : 0 );
2017
2010
the_hash_algo -> update_fn (c , in0 , stream -> next_in - in0 );
2018
- if (write_buffer (fd , compressed , stream -> next_out - compressed ) < 0 )
2019
- die (_ ("unable to write loose object file" ));
2011
+ if (write_in_full (fd , compressed , stream -> next_out - compressed ) < 0 )
2012
+ die_errno (_ ("unable to write loose object file" ));
2020
2013
stream -> next_out = compressed ;
2021
2014
stream -> avail_out = compressed_len ;
2022
2015
You can’t perform that action at this time.
0 commit comments