Sha256: 8e95fa04f25fa657b5ff7c84e87c8de1540e356520daeb5fe84e441eb79e5a20

Contents?: true

Size: 674 Bytes

Versions: 2

Compression:

Stored size: 674 Bytes

Contents

#!/usr/bin/env ruby
# parameters: revision1, revision 2, branch
THIS_FILE = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
$:.unshift File.join(File.dirname(THIS_FILE), "../lib")
require "commit_hook"

case ARGV.length
when 0
  CommitHook.show_error("You have to add a path to the config file for git-commit-notifier")
  puts "Usage:  git-commit-notifier config-script [oldrev newrev [ref]]"
when 1
  oldrev, newrev, ref = STDIN.gets.strip.split
  CommitHook.run ARGV[0], oldrev, newrev, ref
when 2
  CommitHook.run ARGV[0], ARGV[1], ARGV[1], ""
when 3
  CommitHook.run ARGV[0], ARGV[1], ARGV[2], ""
else
  CommitHook.run ARGV[0], ARGV[1], ARGV[2], ARGV[3]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git-commit-notifier-0.8.0 bin/git-commit-notifier
git-commit-notifier-0.7.2 bin/git-commit-notifier