Skip to content

Commit 61ef1b8

Browse files
authored
Merge pull request #601 from PecanProject/fix-frozen-string
create duplicate of environment variable
2 parents 80460f4 + 854b061 commit 61ef1b8

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ section for the next release.
66
For more information about this file see also [Keep a Changelog](http://keepachangelog.com/) .
77

88

9+
## [5.0.4] - 2018-10-11
10+
11+
### Fixes
12+
13+
- #600 : Error when starting BETY as docker container due to frozen variable.
14+
915
## [5.0.3] - 2018-09-28
1016

1117
### Fixes

app/helpers/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def commit_is_tagged?
128128

129129
def commit_tags
130130
e = ENV['BETY_GIT_TAGS']
131-
ref_names = e.nil? || e.empty? ? `git log --pretty=format:"%d" -1` : e
131+
ref_names = e.nil? || e.empty? ? `git log --pretty=format:"%d" -1` : e.dup
132132
if /tag/.match(ref_names).nil?
133133
return ""
134134
end

hooks/build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env sh
22

3+
# so we can run script outside of docker hub
4+
IMAGE_NAME=${IMAGE_NAME:-"pecan/bety:latest"}
5+
6+
# build the actual container
37
docker build \
48
--build-arg BETY_GIT_TAGS="$(git log --pretty=format:%d -1)" \
59
--build-arg BETY_GIT_BRANCH="$(git rev-parse --abbrev-ref HEAD)" \

0 commit comments

Comments
 (0)