]> _ Git - git-shell-commands.git/commitdiff
Remove unnecessary use of test ([) master
authormivirl <>
Sat, 2 Mar 2024 20:01:00 +0000 (14:01 -0600)
committermivirl <>
Sat, 2 Mar 2024 20:01:00 +0000 (14:01 -0600)
create-repo

index 3064d07f2f313fc14415f0e1e9b00f3be4068652..f88e3bf21b14ea672132f3600bb9327ca2e5b0e8 100755 (executable)
@@ -18,7 +18,7 @@ git init --bare
 
 cat << EOF > hooks/post-receive
 #!/bin/sh
-if [ git cat-file -e HEAD:README.md ]; then
+if git cat-file -e HEAD:README.md ; then
        git cat-file blob HEAD:README.md | cmark > README.html
 fi
 EOF