From: Eric Sunshine Date: Fri, 12 Jul 2024 16:53:58 GMT Subject: Re: [PATCH] show-index: fix uninitialized hash function Message-ID: In-Reply-To: <20240712142326.266533-1-abhijeet.nkt@gmail.com> On Fri, Jul 12, 2024 at 10:24 AM Abhijeet Sonar 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