Permalink
Browse files

Fixed build to always get commit sha from git CLI

  • Loading branch information...
joshuaflanagan committed May 21, 2010
1 parent b757300 commit 15cf1f2abd5e43999039b4856592e4158a7c5961
Showing with 1 addition and 1 deletion.
  1. +1 −1 rakefile.rb
View
@@ -27,7 +27,7 @@
gittag = `git describe --long`.chomp # looks something like v0.1.0-63-g92228f4
gitnumberpart = /-(\d+)-/.match(gittag)
gitnumber = gitnumberpart.nil? ? '0' : gitnumberpart[1]
- commit = (ENV["BUILD_VCS_NUMBER"].nil? ? `git log -1 --pretty=format:%H` : ENV["BUILD_VCS_NUMBER"])
+ commit = `git log -1 --pretty=format:%H`
rescue
commit = "git unavailable"
gitnumber = "0"

0 comments on commit 15cf1f2

Please sign in to comment.