Commit 601aaddf98d6a67062610fbf9ce30e2e1c76bc29

Authored by Antonio Terceiro
2 parents fa03a6b3 ba1b25b9

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 2 PROJECT = 'noosfero'
3 3 VERSION = '1.0'
4 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
... ...