Sha256: a1646c52d8196c767a15f9e8632196f55d712675212c6499a71f42e66288b87e
Contents?: true
Size: 333 Bytes
Versions: 7
Compression:
Stored size: 333 Bytes
Contents
#!/usr/bin/env ruby require 'pre-commit/cli' PRE_COMMIT_HOOK_PATH = '.git/hooks/pre-commit' if ARGV[0] != "install" puts "Usage: pre-commit install" exit(1) end if !File.exists?(".git") puts "No .git directory found." exit(1) end cli = PreCommit::Cli.new cli.install puts "Installed hook: #{PRE_COMMIT_HOOK_PATH}" puts
Version data entries
7 entries across 7 versions & 1 rubygems