diff options
Diffstat (limited to 'dev-vcs/gitlab-shell/files/gitlab-shell-1.7.1-paths-from-config.patch')
-rw-r--r-- | dev-vcs/gitlab-shell/files/gitlab-shell-1.7.1-paths-from-config.patch | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/dev-vcs/gitlab-shell/files/gitlab-shell-1.7.1-paths-from-config.patch b/dev-vcs/gitlab-shell/files/gitlab-shell-1.7.1-paths-from-config.patch index 2f79e10..6ba4967 100644 --- a/dev-vcs/gitlab-shell/files/gitlab-shell-1.7.1-paths-from-config.patch +++ b/dev-vcs/gitlab-shell/files/gitlab-shell-1.7.1-paths-from-config.patch @@ -1,24 +1,3 @@ ---- a/support/rewrite-hooks.sh 2013-08-26 11:59:22.000000000 +0200 -+++ b/support/rewrite-hooks.sh 2013-09-10 21:31:30.135841009 +0200 -@@ -1,13 +1,14 @@ - #!/bin/bash - - # $1 is an optional argument specifying the location of the repositories directory. --# Defaults to /home/git/repositories if not provided -+# If no argument is provided then path is readed from /etc/gitlab-shell.yml - --home_dir="/home/git" --src=${1:-"$home_dir/repositories"} -+base_path="$(realpath `dirname $(readlink -f "$0")`/..)" -+repos_path="$(ruby -ryaml -e 'puts YAML::load_file("/etc/gitlab-shell.yml")["repos_path"]')" -+src=${1:-"$repos_path"} - - function create_link_in { -- ln -s -f "$home_dir/gitlab-shell/hooks/update" "$1/hooks/update" -+ ln -s -f "$base_path/hooks/update" "$1/hooks/update" - } - - for dir in `ls "$src/"` --- a/support/truncate_repositories.sh 2013-08-26 11:59:22.000000000 +0200 +++ b/support/truncate_repositories.sh 2013-09-10 21:31:30.135841009 +0200 @@ -1,12 +1,12 @@ |