Commit b982d5e8a930693fc0edd181cbda552be5ab433c
1 parent
0cd8f0eb
Exists in
master
and in
29 other branches
Noosfero::VERSION: normalize RC versions from git tags
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/version.rb
@@ -5,5 +5,5 @@ end | @@ -5,5 +5,5 @@ end | ||
5 | 5 | ||
6 | root = File.expand_path(File.dirname(__FILE__) + '/../..') | 6 | root = File.expand_path(File.dirname(__FILE__) + '/../..') |
7 | if File.exist?(File.join(root, '.git')) | 7 | if File.exist?(File.join(root, '.git')) |
8 | - Noosfero::VERSION.clear << Dir.chdir(root) { `git describe --tags`.strip } | 8 | + Noosfero::VERSION.clear << Dir.chdir(root) { `git describe --tags`.strip.sub('-rc', '~rc') } |
9 | end | 9 | end |