From 7a26fcdbde124718e097d0a7d5b8ae3b117a911f Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Mon, 13 Jul 2020 00:05:47 -0400 Subject: [PATCH] stagit: Update post-receive to update the stagit-index It recently came to my attention that the index has a "last edited" timestamp, which requires regenerating the index on each commit... --- stagit/post-receive | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stagit/post-receive b/stagit/post-receive index 222147a..f32a9b3 100755 --- a/stagit/post-receive +++ b/stagit/post-receive @@ -8,3 +8,7 @@ src="$(pwd)" mkdir -p "$dst" (cd "$dst" && stagit "$src") cp -f "$dst/log.html" "$dst/index.html" + +# Assume run as git, so $HOME has the repos +exported="$(ls $HOME/*.git/git-daemon-export-ok | sed 's/\/git-daemon-export-ok//g')" +stagit-index $exported > /var/www/htdocs/git/index.html -- libgit2 1.1.1