Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/helpers/generic.rb')
-rw-r--r--lib/helpers/generic.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helpers/generic.rb b/lib/helpers/generic.rb
index 264ba497..76399023 100644
--- a/lib/helpers/generic.rb
+++ b/lib/helpers/generic.rb
@@ -16,7 +16,7 @@ module Nanoc::Helpers
# which they are considered production.
#
def production_and_default_branch?
- ENV['NANOC_ENV'] == 'production' and ENV['CI_DEFAULT_BRANCH'] == ENV['CI_COMMIT_BRANCH']
+ ENV['NANOC_ENV'] == 'production' and ENV['CI_DEFAULT_BRANCH'] == ENV['CI_COMMIT_REF_NAME']
end
#