Commit 601aaddf98d6a67062610fbf9ce30e2e1c76bc29
Exists in
master
and in
27 other branches
Merge branch 'git-version' into 'master'
Use git information in Noosfero::VERSION the commit message is self-explanatory See merge request !435
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
lib/noosfero/version.rb
@@ -2,3 +2,7 @@ module Noosfero | @@ -2,3 +2,7 @@ module Noosfero | ||
2 | PROJECT = 'noosfero' | 2 | PROJECT = 'noosfero' |
3 | VERSION = '1.0' | 3 | VERSION = '1.0' |
4 | end | 4 | end |
5 | + | ||
6 | +if File.exist?(File.join(Rails.root, '.git')) | ||
7 | + Noosfero::VERSION.clear << Dir.chdir(Rails.root) { `git describe --tags`.strip } | ||
8 | +end |