Commit 7848c5df authored by Peter Palfrader's avatar Peter Palfrader

Allow git from more places

parent cd626861
......@@ -147,11 +147,16 @@ case "$action" in
git-upload-pack)
require_master
repos='/srv/snapshot.debian.org/snapshot.git'
if [ "$1" != "'$repos'" ]; then
croak "May not access other repositories"
fi
exec git-upload-pack "$repos"
repo_list=()
repo_list+=('/srv/snapshot.debian.org/snapshot.git')
repo_list+=('/srv/snapshot.debian.org/dumps-git')
for repo_idx in ${!repo_list[*]}; do
repos="${repo_list[$repo_idx]}"
if [ "$1" = "'$repos'" ]; then
exec git-upload-pack "$repos"
fi
done
croak "May not access this repository"
;;
rsync)
do_rsync "$@"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment