File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed 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 @@ -153,9 +153,9 @@ module GitVersion
153
153
get_commits_since(previous_tag).each do |c |
154
154
commit = c.downcase
155
155
match = if @major_id_is_regex
156
- /#{ @major_identifier } / .match(commit)
156
+ /^ #{ @major_identifier } / .match(commit)
157
157
else
158
- commit.includes?( @major_identifier )
158
+ /^ #{ @major_identifier } / .match(commit )
159
159
end
160
160
if match
161
161
previous_version =
You can’t perform that action at this time.
0 commit comments