From 9606e35528d0f83ae8f64f4fffd785f1e443f715 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Wed, 19 Sep 2012 06:24:07 +0530 Subject: [PATCH] help cgit folks out a bit :) --- .../post-compile/update-description-file | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 src/triggers/post-compile/update-description-file diff --git a/src/triggers/post-compile/update-description-file b/src/triggers/post-compile/update-description-file new file mode 100755 index 0000000..7d00298 --- /dev/null +++ b/src/triggers/post-compile/update-description-file @@ -0,0 +1,17 @@ +#!/bin/bash + +# For normal (not "wild") repos, gitolite v3 sets 'gitweb.description' instead +# of putting the text in the "description" file. This is easier because it +# just goes with the flow of setting config variables; nothing special needs +# to be done for the description. + +# But this only works for gitweb, not for cgit. Cgit users must therefore add +# this line to the POST_COMPILE list in the rc file: +# 'post-compile/update-description-file', + +cd $GL_REPO_BASE +gitolite list-phy-repos | gitolite git-config % gitweb.description | + while read a b c + do + echo "$c" > $GL_REPO_BASE/$a.git/description + done