summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-11-16 21:28:45 -0500
committerMalfurious <m@lfurio.us>2023-11-17 06:11:07 -0500
commit1a2a598f2c43d5fffeb40efae80a8130e33a441d (patch)
tree1e63621edc86c9e1ac4e12eac271b0d896d64cd9
parentfdc21b961602843f8d1e24a7d772929f8c6032fc (diff)
downloadcychedelic-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>
-rwxr-xr-xacid/acid-source2
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