Merge branch 'js/pack-objects-mutex-init-fix'

A mutex used in "git pack-objects" were not correctly initialized
and this caused "git repack" to dump core on Windows.

* js/pack-objects-mutex-init-fix:
  pack-objects (mingw): initialize `packing_data` mutex in the correct spot
  pack-objects (mingw): demonstrate a segmentation fault with large deltas
  pack-objects: fix typo 'detla' -> 'delta'
This commit is contained in:
Junio C Hamano
2018-10-30 15:43:43 +09:00
4 changed files with 36 additions and 2 deletions

View File

@ -377,7 +377,7 @@ static inline unsigned long oe_delta_size(struct packing_data *pack,
return e->delta_size_;
/*
* pack->detla_size[] can't be NULL because oe_set_delta_size()
* pack->delta_size[] can't be NULL because oe_set_delta_size()
* must have been called when a new delta is saved with
* oe_set_delta().
* If oe_delta() returns NULL (i.e. default state, which means