Sha256: 073cf5d94c3585f00567cb98d9ce695adbf812dff675de182ee8053023658a9c

Contents?: true

Size: 228 Bytes

Versions: 4

Compression:

Stored size: 228 Bytes

Contents

module Bozo::Hooks

  class GitCommitHashes
    
    def post_dependencies
      env['GIT_HASH'] = `git log -1 --format="%h"`.strip
      env['GIT_HASH_FULL'] = `git log -1 --format="%H"`.strip
    end
    
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
bozo-scripts-0.1.11 lib/bozo/hooks/git_commit_hashes.rb
bozo-scripts-0.1.6 lib/bozo/hooks/git_commit_hashes.rb
iisconfig-0.0.1.pre2 build/bundler/ruby/1.9.1/bundler/gems/bozo-scripts-950046ad1602/lib/bozo/hooks/git_commit_hashes.rb
iisconfig-0.0.1.pre1 build/bundler/ruby/1.9.1/bundler/gems/bozo-scripts-950046ad1602/lib/bozo/hooks/git_commit_hashes.rb