diff options
| -rw-r--r-- | configuration/cgit/cgit.css | 2 | ||||
| -rw-r--r-- | configuration/gitolite/gitolite.rc | 4 | ||||
| -rwxr-xr-x | configuration/gitolite/local/hooks/common/post-receive | 9 | ||||
| -rwxr-xr-x | scripts/redeploy.sh | 1 |
4 files changed, 13 insertions, 3 deletions
diff --git a/configuration/cgit/cgit.css b/configuration/cgit/cgit.css index 22dfb89..d8d7e07 100644 --- a/configuration/cgit/cgit.css +++ b/configuration/cgit/cgit.css @@ -916,7 +916,7 @@ div#cgit table.blob .kwc { color:#000000; font-weight:bold; } div#cgit table.blob .kwd { color:#010181; } -/* CUSTOM */ +/* UNMERGED CUSTOM */ * { line-height: 1.25em; } diff --git a/configuration/gitolite/gitolite.rc b/configuration/gitolite/gitolite.rc index 812bd04..7301e77 100644 --- a/configuration/gitolite/gitolite.rc +++ b/configuration/gitolite/gitolite.rc @@ -74,7 +74,7 @@ # suggested locations for site-local gitolite code (see cust.html) # this one is managed directly on the server - # LOCAL_CODE => "$ENV{HOME}/local", + LOCAL_CODE => "$ENV{HOME}/local", # or you can use this, which lets you put everything in a subdirectory # called "local" in your gitolite-admin repo. For a SECURITY WARNING @@ -199,4 +199,4 @@ # Local variables: # mode: perl # End: -# vim: set syn=perl:
\ No newline at end of file +# vim: set syn=perl: diff --git a/configuration/gitolite/local/hooks/common/post-receive b/configuration/gitolite/local/hooks/common/post-receive new file mode 100755 index 0000000..71e1895 --- /dev/null +++ b/configuration/gitolite/local/hooks/common/post-receive @@ -0,0 +1,9 @@ +#!/bin/sh + +agefile="$(git rev-parse --git-dir)"/info/web/last-modified + +mkdir -p "$(dirname "$agefile")" && +git for-each-ref \ + --sort=-authordate --count=1 \ + --format='%(authordate:iso8601)' \ + >"$agefile"
\ No newline at end of file diff --git a/scripts/redeploy.sh b/scripts/redeploy.sh index acabde4..d8f7c39 100755 --- a/scripts/redeploy.sh +++ b/scripts/redeploy.sh @@ -6,6 +6,7 @@ cp -v ./configuration/nginx/homepage.conf /etc/nginx/sites-enabled/homepage.conf cp -v ./configuration/cgit/cgitrc /etc/cgitrc cp -v ./configuration/cgit/cgit.css /usr/share/cgit/cgit.css install -v -o git -g git ./configuration/gitolite/gitolite.rc /var/git/.gitolite.rc +install -v -o git -g git -d ./configuration/gitolite/local/ /var/git/ # build and sync zola static site (cd zola-static && zola build) |
