Class: Bozo::Hooks::GitCommitHashes

Inherits:
Object
  • Object
show all
Defined in:
lib/bozo/hooks/git_commit_hashes.rb

Instance Method Summary collapse

Instance Method Details

#post_dependenciesObject



5
6
7
8
# File 'lib/bozo/hooks/git_commit_hashes.rb', line 5

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