about summary refs log tree commit diff stats
path: root/tools/conf/srv/gitolite/hook-deployweb
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2017-02-04 00:46:40 +0000
committerSilvino Silva <silvino@bk.ru>2017-02-04 00:46:40 +0000
commit4208a8936840298b00e6930fb0501db27a5cde0f (patch)
tree662a5e7ce5569249b63c9f4925ba4f75b4c44575 /tools/conf/srv/gitolite/hook-deployweb
parent5509a84e0d1a2732a429120e0bd26b83e119481f (diff)
parenta671b0c01821d46d9f783393b887d7987ec10161 (diff)
downloaddoc-4208a8936840298b00e6930fb0501db27a5cde0f.tar.gz
Merge branch 'r-0.3.0' into develop
Diffstat (limited to 'tools/conf/srv/gitolite/hook-deployweb')
-rwxr-xr-xtools/conf/srv/gitolite/hook-deployweb22
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/conf/srv/gitolite/hook-deployweb b/tools/conf/srv/gitolite/hook-deployweb
deleted file mode 100755
index 1a32bd9..0000000
--- a/tools/conf/srv/gitolite/hook-deployweb
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-######################################################################
-#
-# Put this file in your gitolite-admin;
-# ~/gitolite-admin/local/hooks/repo-specific/hook-deployweb
-#
-while read oldrev newrev refname
-do
-    BRANCH=$(git rev-parse --symbolic --abbrev-ref $refname)
-    echo "Commit was for branch $BRANCH"
-
-    if [ "$BRANCH" = "deployweb" ]; then
-
-        # Get project name from current directory (without .git)
-        PROJECT=$(basename "$PWD")
-        PROJECT=${PROJECT%.git}
-
-        echo "Project $PROJECT added to deploy list."
-        echo $PWD > /srv/gitolite/deploy/$PROJECT
-    fi
-done