From b90c128062a010e8f04291c0e1d0c12e61384870 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 7 Nov 2019 13:43:18 +0000 Subject: [PATCH] Prevent publishing of `production` branches --- bin/git-publish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-publish b/bin/git-publish index b19dac9..a6027ef 100755 --- a/bin/git-publish +++ b/bin/git-publish @@ -3,7 +3,7 @@ $currentBranch = exec('git rev-parse --abbrev-ref HEAD'); -if (in_array($currentBranch, ['master', 'develop', 'staging'])) { +if (in_array($currentBranch, ['master', 'production', 'develop', 'staging'])) { print "Currently on ${currentBranch}. Aborting."; exit(1); }