Skip to content

Instantly share code, notes, and snippets.

@thisivan
Created May 6, 2011 19:35
Show Gist options
  • Save thisivan/959627 to your computer and use it in GitHub Desktop.
Save thisivan/959627 to your computer and use it in GitHub Desktop.
Take the abbreviated commit hash as the RAILS_ASSET_ID value
ENV['RAILS_ASSET_ID'] = `git log -1 --pretty=format:"%h"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment