diff options
author | Malfurious <m@lfurio.us> | 2023-11-16 21:28:45 -0500 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-11-17 06:11:07 -0500 |
commit | 1a2a598f2c43d5fffeb40efae80a8130e33a441d (patch) | |
tree | 1e63621edc86c9e1ac4e12eac271b0d896d64cd9 /acid | |
parent | fdc21b961602843f8d1e24a7d772929f8c6032fc (diff) | |
download | cychedelic-1a2a598f2c43d5fffeb40efae80a8130e33a441d.tar.gz cychedelic-1a2a598f2c43d5fffeb40efae80a8130e33a441d.zip |
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 <m@lfurio.us>
Diffstat (limited to 'acid')
-rwxr-xr-x | acid/acid-source | 2 |
1 files changed, 1 insertions, 1 deletions
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 |