mbox series

[v3,0/5] Fix use of uninitialized hash algorithms

Message ID 20240513224127.2042052-1-gitster@pobox.com (mailing list archive)
Headers show
Series Fix use of uninitialized hash algorithms | expand

Message

Junio C Hamano May 13, 2024, 10:41 p.m. UTC
In this round, the escape hatch is no longer the escape hatch, but
also serves as an end-user knob to specify what hash algorithm to
use when there is no repository to tell us which one to use.

We can see that Patrick's two fixes to patch-id and hash-object, as
well as my fix to apply, correct the breakage as the series
progresses.

Junio C Hamano (3):
  setup: add an escape hatch for "no more default hash algorithm" change
  t1517: test commands that are designed to be run outside repository
  apply: fix uninitialized hash function

Patrick Steinhardt (2):
  builtin/patch-id: fix uninitialized hash function
  builtin/hash-object: fix uninitialized hash function

 builtin/apply.c         |  4 +++
 builtin/hash-object.c   |  3 ++
 builtin/patch-id.c      | 13 +++++++++
 repository.c            | 32 +++++++++++++++++++++
 t/t1007-hash-object.sh  |  6 ++++
 t/t1517-outside-repo.sh | 64 +++++++++++++++++++++++++++++++++++++++++
 t/t4204-patch-id.sh     | 34 ++++++++++++++++++++++
 7 files changed, 156 insertions(+)
 create mode 100755 t/t1517-outside-repo.sh