From 1a2a598f2c43d5fffeb40efae80a8130e33a441d Mon Sep 17 00:00:00 2001 From: Malfurious Date: Thu, 16 Nov 2023 21:28:45 -0500 Subject: acid: source: Initialize cached hash to NULL For some consistency, initialize repos' previous_hash to the NULL hash (all zeros). This should prevent empty values on the user interface. Signed-off-by: Malfurious --- acid/acid-source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acid/acid-source b/acid/acid-source index 8c62c44..8242452 100755 --- a/acid/acid-source +++ b/acid/acid-source @@ -48,7 +48,7 @@ if ! [ -d "$1" ]; then | git update-ref --stdin >/dev/null 2>&1 # Init cyche metadata - touch ".git/previous_hash" + echo "$NULL_HASH" >".git/previous_hash" touch ".git/previous_slug" else # Existing repository -- cgit v1.2.3