git-server

git server-side stuff | stagit
git clone git://git.ckyln.com/~cem/hooks.git
Log | Files | Refs | README

commit 8a3b5b3742254cd71a54616b5c5e3cbf652cc39b
parent 1a35099e6865e1ab0b96643624cb1f3a5e8532d3
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 19 Jun 2020 09:42:20 +0300

post-receive: simplify url function

Diffstat:
Mpost-receive | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/post-receive b/post-receive @@ -26,10 +26,7 @@ done < mirrors # Generate files parsed by 'stagit'. [ -f owner ] || printf '%s\n' "$OWNER" > owner -[ -f url ] || { - repo=${PWD##*/} - printf '%s\n' "$BASE_URL/$repo" > url -} +[ -f url ] || printf '%s\n' "$BASE_URL/$repository" > url # Make sure we export the current repository. # No, we don't want to run the 'export' command.