On Fri, Jul 12, 2024 at 10:24 AM Abhijeet Sonar <abhijeet.nkt@xxxxxxxxx> wrote: > As stated in the docs, show-index should use SHA1 as the default hash algorithm > when run outsize of a repository. However, 'the_hash_algo' is currently left > uninitialized if we are not in a repository and no explicit hash funciton is s/funciton/function/ > specified, causing a crash. Fix it by falling back to SHA1 when it is found > uninitialized. > > Signed-off-by: Abhijeet Sonar <abhijeet.nkt@xxxxxxxxx>