mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
t0002: Add more git-serve tests
Add tests for common scenarios that should be detected/handled by the git-serve script. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
008eace8db
commit
9a03c7fbdd
2 changed files with 79 additions and 2 deletions
|
@ -29,8 +29,8 @@ ssh-options = restrict
|
|||
[serve]
|
||||
repo-path = ./aur.git/
|
||||
repo-regex = [a-z0-9][a-z0-9.+_-]*$
|
||||
git-shell-cmd = /usr/bin/git-shell
|
||||
git-update-cmd = /srv/http/aurweb/git-interface/git-update.py
|
||||
git-shell-cmd = ./git-shell.sh
|
||||
git-update-cmd = ./update.sh
|
||||
ssh-cmdline = ssh aur@aur.archlinux.org
|
||||
|
||||
[update]
|
||||
|
@ -42,6 +42,21 @@ cat >notify.sh <<-EOF
|
|||
EOF
|
||||
chmod +x notify.sh
|
||||
|
||||
cat >git-shell.sh <<-\EOF
|
||||
#!/bin/sh
|
||||
echo $AUR_USER
|
||||
echo $AUR_PKGBASE
|
||||
echo $GIT_NAMESPACE
|
||||
EOF
|
||||
chmod +x git-shell.sh
|
||||
|
||||
cat >update.sh <<-\EOF
|
||||
#!/bin/sh
|
||||
echo $AUR_USER
|
||||
echo $AUR_PKGBASE
|
||||
EOF
|
||||
chmod +x update.sh
|
||||
|
||||
AUR_CONFIG=config
|
||||
export AUR_CONFIG
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue