Permalink
Browse files

Match the whole string

  • Loading branch information...
1 parent 4fd3c47 commit c32365d26179124393e9c9156897f124f0e15693 @rafaelfranca rafaelfranca committed Mar 14, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/release.rb
View
@@ -102,7 +102,7 @@
abort "[ABORTING] `git status` reports a dirty tree. Make sure all changes are committed"
end
- unless ENV['SKIP_TAG'] || `git tag | grep #{tag}`.strip.empty?
+ unless ENV['SKIP_TAG'] || `git tag | grep '^#{tag}$`.strip.empty?
abort "[ABORTING] `git tag` shows that #{tag} already exists. Has this version already\n"\
" been released? Git tagging can be skipped by setting SKIP_TAG=1"
end

0 comments on commit c32365d

Please sign in to comment.