From a21994b4ef63f3ddc4bcf70ecbf7316f472e1957 Mon Sep 17 00:00:00 2001 From: mivirl <> Date: Thu, 11 Jan 2024 00:26:14 -0600 Subject: [PATCH] Add check for README.md --- create-repo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/create-repo b/create-repo index 8e23d83..3064d07 100755 --- a/create-repo +++ b/create-repo @@ -18,7 +18,9 @@ git init --bare cat << EOF > hooks/post-receive #!/bin/sh -git cat-file blob HEAD:README.md | cmark > README.html +if [ git cat-file -e HEAD:README.md ]; then + git cat-file blob HEAD:README.md | cmark > README.html +fi EOF chmod +x hooks/post-receive -- 2.39.5