File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 1
1
CRYSTAL? =$(shell which crystal)
2
2
CRYSTAL_FLAGS =--release
3
3
CRYSTAL_STATIC_FLAGS =--static
4
-
5
4
VERSION? =$(shell cat .version)
6
5
7
6
all : fmt test build docker_build # # clean and produce target binary and docker image
Original file line number Diff line number Diff line change @@ -474,7 +474,7 @@ describe GitVersion do
474
474
tmp.exec %( git checkout -b master)
475
475
tmp.exec %( git commit --no-gpg-sign --allow-empty -m "1")
476
476
tmp.exec %( git tag "0.1.0")
477
- tmp.exec %( git commit --no-gpg-sign --allow-empty -m ": breaking: 2")
477
+ tmp.exec %( git commit --no-gpg-sign --allow-empty -m "breaking: 2")
478
478
479
479
version = git.get_new_version
480
480
version.should eq(" 1.0.0" )
@@ -495,7 +495,7 @@ describe GitVersion do
495
495
tmp.exec %( git tag "0.1.0")
496
496
tmp.exec %( git commit --no-gpg-sign --allow-empty -m "feature: 2")
497
497
tmp.exec %( git tag "0.2.0-asd")
498
- tmp.exec %( git commit --no-gpg-sign --allow-empty -m ": breaking: 2")
498
+ tmp.exec %( git commit --no-gpg-sign --allow-empty -m "breaking: 2")
499
499
500
500
version = git.get_new_version
501
501
version.should eq(" 1.0.0" )
Original file line number Diff line number Diff line change @@ -152,11 +152,7 @@ module GitVersion
152
152
major = false
153
153
get_commits_since(previous_tag).each do |c |
154
154
commit = c.downcase
155
- match = if @major_id_is_regex
156
- /#{ @major_identifier } / .match(commit)
157
- else
158
- commit.includes?(@major_identifier )
159
- end
155
+ match = /^#{ @major_identifier } / .match(commit)
160
156
if match
161
157
previous_version =
162
158
SemanticVersion .new(
You can’t perform that action at this time.
0 commit comments