diff options
| -rw-r--r-- | cgit/cgitrc | 5 | ||||
| -rw-r--r-- | cgit/docker-compose.yml | 1 | ||||
| -rw-r--r-- | cgit/logo.png | bin | 0 -> 21767 bytes | |||
| -rwxr-xr-x | post-receive-hook.sh | 18 |
4 files changed, 20 insertions, 4 deletions
diff --git a/cgit/cgitrc b/cgit/cgitrc index 52f3cd9..55a8f0e 100644 --- a/cgit/cgitrc +++ b/cgit/cgitrc @@ -5,8 +5,7 @@ enable-git-config=1 cache-size=1000 root-title=Eden's personal git server -root-desc=Warning: Bad code lies henceforth -repository-sort=age +root-desc=Beware: Bad code lies henceforth # Start all URLs from the root mimetype.gif=image/gif mimetype.htm=text/html @@ -77,7 +76,7 @@ readme=:install enable-index-links=1 # Show owner -enable-index-owner=1 +enable-index-owner=0 # Enable ASCII art commit history graph on the log pages enable-commit-graph=1 diff --git a/cgit/docker-compose.yml b/cgit/docker-compose.yml index 88c6eb9..3815850 100644 --- a/cgit/docker-compose.yml +++ b/cgit/docker-compose.yml @@ -6,5 +6,6 @@ cgit: - /srv/git:/srv/git - ./cgitrc:/etc/cgitrc - ../../cgitrepos:/etc/cgitrepos + - ./logo.png:/assets/greenboi.png - ./httpd-cgit.conf:/etc/httpd/conf.d/httpd-cgit.conf restart: unless-stopped diff --git a/cgit/logo.png b/cgit/logo.png Binary files differnew file mode 100644 index 0000000..0fd0680 --- /dev/null +++ b/cgit/logo.png diff --git a/post-receive-hook.sh b/post-receive-hook.sh index 1b56595..f8902f3 100755 --- a/post-receive-hook.sh +++ b/post-receive-hook.sh @@ -1,3 +1,19 @@ +#!/usr/bin/env python3 + +# I know I have the extension of a bash file but secretly I am a python file +# Yes I know it will fuck up your linter +# Sadly we have to do it this way because once up on a time this actually was a bash file and we don't want to remake hundreds of symlinks + +import sys +import os + +(old, new, branch) = sys.stdin.read().split() +print("Old: '%s'" % old) +print("New: '%s'" % new) +print("Branch: '%s'" % branch) +print("Push to '%s' successful!" % os.getcwd().split(os.sep)[-2]) + #!/bin/sh -echo "Push successful!"
\ No newline at end of file +#p=$(pwd) +#echo "Push '${p#/*/*/}' successful!" |
