From 230a3732038730485d831d248336daab95637ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 12 Oct 2022 15:25:05 +0200 Subject: ons 12 okt 2022 15:25:05 CEST --- .vimwiki_tags | 4 ++-- GitServer.wiki | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 56 insertions(+), 10 deletions(-) diff --git a/.vimwiki_tags b/.vimwiki_tags index 1e0adc1..fc053d4 100644 --- a/.vimwiki_tags +++ b/.vimwiki_tags @@ -5,5 +5,5 @@ !_TAG_PROGRAM_NAME Vimwiki Tags !_TAG_PROGRAM_URL https://github.com/vimwiki/vimwiki !_TAG_PROGRAM_VERSION 2.5 -TODO GitServer.wiki 45;" vimwiki:GitServer\tGitServer#Git Server#Autentisering#Autentisering SSH#Problem -TODO GitServer.wiki 88;" vimwiki:GitServer\tGitServer#Taggning#Cleanup +TODO GitServer.wiki 49;" vimwiki:GitServer\tGitServer#Git Server#Autentisering#Autentisering SSH#Problem +TODO GitServer.wiki 92;" vimwiki:GitServer\tGitServer#Taggning#Cleanup diff --git a/GitServer.wiki b/GitServer.wiki index f4b4208..c150e6c 100644 --- a/GitServer.wiki +++ b/GitServer.wiki @@ -11,14 +11,18 @@ - [[#Taggning|Taggning]] - [[#Taggning#Cleanup|Cleanup]] - [[#Hooks|Hooks]] - - [[#Hooks#Framtida förbättringar|Framtida förbättringar]] - - [[#Hooks#Default config|Default config]] - - [[#Hooks#Default config#cclite|cclite]] - - [[#Hooks#Default config#VVVVVV|VVVVVV]] - - [[#Hooks#Default config#password-store|password-store]] - - [[#Hooks#Default config#reddit-parenthesis-bot|reddit-parenthesis-bot]] - - [[#Hooks#Default config#cgit|cgit]] - - [[#Hooks#Default config#guile-cairo|guile-cairo]] + - [[#Hooks#Sample run of post-receive|Sample run of post-receive]] + - [[#Hooks#Sample run of post-receive#COMMAND LINE|COMMAND LINE]] + - [[#Hooks#Sample run of post-receive#ENVIRONMENT|ENVIRONMENT]] + - [[#Hooks#Sample run of post-receive#STDIN|STDIN]] + - [[#Hooks#Sample run of post-receive#Framtida förbättringar|Framtida förbättringar]] + - [[#Hooks#Sample run of post-receive#Default config|Default config]] + - [[#Hooks#Sample run of post-receive#Default config#cclite|cclite]] + - [[#Hooks#Sample run of post-receive#Default config#VVVVVV|VVVVVV]] + - [[#Hooks#Sample run of post-receive#Default config#password-store|password-store]] + - [[#Hooks#Sample run of post-receive#Default config#reddit-parenthesis-bot|reddit-parenthesis-bot]] + - [[#Hooks#Sample run of post-receive#Default config#cgit|cgit]] + - [[#Hooks#Sample run of post-receive#Default config#guile-cairo|guile-cairo]] = Git Server = https://git.hornquist.se @@ -92,6 +96,48 @@ find -type d -name \*.git -execdir env GIT_DIR={} git config gitweb.category Liu - [[gitserver-documentation]] +== Sample run of post-receive == + +Repo stored in `~git/git/test.git`, pushed over SSH + +=== COMMAND LINE === +{{{ +argv ['/dev/fd/4'] + cwd '/home/git/git/test.git' +}}} + +=== ENVIRONMENT === +{{{ +DBUS_SESSION_BUS_ADDRESS 'unix:path=/run/user/1001/bus' + GIT_DIR '.' + GIT_EXEC_PATH '/usr/lib/git-core' + GIT_PUSH_OPTION_COUNT '0' + HOME '/home/git' + LANG 'en_US.UTF-8' + LANGUAGE 'en_US:en' + LOGNAME 'git' + MOTD_SHOWN 'pam' + PATH '/usr/lib/git-core:/home/git/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin' + PWD '/home/git' + SHELL '/bin/bash' + SHLVL '0' + SSH_CLIENT '46.59.41.54 60166 22' + SSH_CONNECTION '46.59.41.54 60166 90.143.207.193 22' + USER 'git' + XDG_RUNTIME_DIR '/run/user/1001' + XDG_SESSION_CLASS 'user' + XDG_SESSION_ID '59490' + XDG_SESSION_TYPE 'tty' + _ '/usr/bin/git-receive-pack' + GITHOOKS '1' +}}} + +=== STDIN === +{{{ +7aaa112c7563e535f71f99e79fc3bf008f45750d 432ef726ac54c0acecc9c9728129413510e518b4 refs/heads/master +}}} + + === Framtida förbättringar === - `enable-remote-branches` ([[man:cgitrc#5]]) - Vad händer om ett repo har både subdir och kattegori -- cgit v1.2.3