Skip to content

Commit

Permalink
Fixed docs SHA handling
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Oct 25, 2012
1 parent ba9c9fa commit 4c36603
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def generate_docs

Dir.chdir(ember_path) do
# returns either `tag` or `tag-numcommits-gSHA`
sha_parts = `git describe --tags --always`.strip.split('-')
sha = sha_parts.length == 1 ? sha_parts[0] : sha_parts[2][1..-1]
describe = `git describe --tags --always`.strip
sha = describe =~ /-g(\.+)/ ? $1 : describe

Dir.chdir("docs") do
system("npm install") unless File.exist?('node_modules')
Expand All @@ -40,7 +40,7 @@ def generate_docs
YAML.dump(data, f)
end

puts "Done"
puts "Built #{sha}"
end

def build
Expand Down

0 comments on commit 4c36603

Please sign in to comment.