Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: blmayer (bleemayer@gmail.com)
Date: Wed Oct 4 02:52:09 2023 -0300
Parent: 3fb7deb
Fixed pipe
diff --git a/post-receive b/post-receive
index c360dc8..ffb86f6 100755
--- a/post-receive
+++ b/post-receive
@@ -220,7 +220,10 @@ updatetree() {
EOF
# create html page with file content
- git show --format='' --name-status "$1" -- "$f" | read -r op x
+ read -r op x <<- EOF
+ $(git show --format='' --name-status "$1" -- "$f")
+ EOF
+
case "$op" in
"D") rm "$OUT/tree/$f.html" ;;
"C"|"M") filepage "$f" > "$OUT/tree/$f.html" ;;