mirror of
https://github.com/git/git.git
synced 2026-01-10 01:56:42 +00:00
Merge branch 'js/bundle-unbundle-fd-reuse-fix'
The code path used when "git fetch" fetches from a bundle file closed the same file descriptor twice, which sometimes broke things unexpectedly when the file descriptor was reused, which has been corrected. * js/bundle-unbundle-fd-reuse-fix: bundle: avoid closing file descriptor twice
This commit is contained in:
@@ -207,6 +207,7 @@ static int fetch_refs_from_bundle(struct transport *transport,
|
||||
|
||||
ret = unbundle(the_repository, &data->header, data->fd,
|
||||
&extra_index_pack_args, &opts);
|
||||
data->fd = -1; /* `unbundle()` closes the file descriptor */
|
||||
transport->hash_algo = data->header.hash_algo;
|
||||
|
||||
strvec_clear(&extra_index_pack_args);
|
||||
|
||||
Reference in New Issue
Block a user