Permalink
Browse files

well if we're in the git dir, try to use git then.

  • Loading branch information...
1 parent 20a8831 commit 18445847e4fd2ddb4b276c224248788df2caae92 @bhuga committed Dec 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/language_pack/ruby.rb
View
2 lib/language_pack/ruby.rb
@@ -194,7 +194,7 @@ def setup_language_pack_environment
def set_head_sha
puts ENV['GIT_DIR'].inspect
puts run("ls #{ENV['GIT_DIR']}")
- ENV['HEAD_SHA'] = run("cat #{ENV['GIT_DIR']}/refs/heads/master")
+ ENV['HEAD_SHA'] = run("git rev-parse HEAD")
puts ENV['HEAD_SHA']
end

0 comments on commit 1844584

Please sign in to comment.