aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-12-07 15:20:02 +0100
committerXavier Noria <fxn@hashref.com>2012-12-07 15:20:56 +0100
commit0adcf6d90e787f2c953d2d58b875d1ff9ef71da8 (patch)
tree61dbf5ced7c94f30906aa8526a0a828b02fcd0f0 /guides/rails_guides
parent89ab303d8b78a73cb7d306a026f185986f44aa2a (diff)
downloadrails-0adcf6d90e787f2c953d2d58b875d1ff9ef71da8.tar.gz
rails-0adcf6d90e787f2c953d2d58b875d1ff9ef71da8.tar.bz2
rails-0adcf6d90e787f2c953d2d58b875d1ff9ef71da8.zip
let @version be always externally set in guides generation [fixes #8221]
Shelling out was there for authors convenience, but we are rather going to have the tag or SHA1 always in RAILS_VERSION and if the environment variable is blank, then just use "local" as a reminder that you are just working locally. The docs server has been updated to set the long SHA1 in RAILS_VERSION when generating edge guides.
Diffstat (limited to 'guides/rails_guides')
-rw-r--r--guides/rails_guides/generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/rails_guides/generator.rb b/guides/rails_guides/generator.rb
index 3b124ef236..a53d34a279 100644
--- a/guides/rails_guides/generator.rb
+++ b/guides/rails_guides/generator.rb
@@ -84,7 +84,7 @@ module RailsGuides
@warnings = ENV['WARNINGS'] == '1'
@all = ENV['ALL'] == '1'
@kindle = ENV['KINDLE'] == '1'
- @version = ENV['RAILS_VERSION'] || `git rev-parse --short HEAD`.chomp
+ @version = ENV['RAILS_VERSION'] || 'local'
@lang = ENV['GUIDES_LANGUAGE']
end