Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 18445847e4fd2ddb4b276c224248788df2caae92 1 parent 20a8831
Ben Lavender authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/language_pack/ruby.rb
2  lib/language_pack/ruby.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.