From 51bdd59e797199ee41733e472fae1325b5014d07 Mon Sep 17 00:00:00 2001 From: Robert McGovern Date: Sat, 22 Jan 2022 23:45:58 +0000 Subject: [PATCH] helps to put it in the right place --- post-receive | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 post-receive diff --git a/post-receive b/post-receive deleted file mode 100644 index 4c089cc..0000000 --- a/post-receive +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -while read oldrev newrev ref -do - if [[ $ref =~ .*/main$ ]]; - then - echo "Main ref received. Deploying main branch to production..." - git --work-tree=/srv/http/galshaw.eu --git-dir=/srv/git/galshaw.eu.git checkout -f - else - echo "Ref $ref successfully received. Doing nothing: only the main branch may be deployed on this server." - fi -done