Sha256: c59ce17865a2c9856384141621533af40a977e302149fa124e40d8eb49c5b3f6
Contents?: true
Size: 301 Bytes
Versions: 3
Compression:
Stored size: 301 Bytes
Contents
#!/usr/bin/env ruby require 'pre-commit/cli' 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: #{PreCommit::Cli::PRE_COMMIT_HOOK_PATH}" puts
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pre-commit-0.8.1 | bin/pre-commit |
pre-commit-0.8.0 | bin/pre-commit |
pre-commit-0.7.0 | bin/pre-commit |