Sha256: 0dcca457a4441ae7f183a1fff481887229d532071113e8ba1c1f50ddf625c814

Contents?: true

Size: 283 Bytes

Versions: 17

Compression:

Stored size: 283 Bytes

Contents

#!/usr/bin/env ruby

require 'pre-commit/cli'

# Change directory to the root of the git repository.
repo_root = `git rev-parse --show-toplevel`.strip
abort "No .git directory found." unless File.directory?(repo_root)
Dir.chdir repo_root

PreCommit::Cli.new(*ARGV).execute or exit 1

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pre-commit-0.40.0 bin/pre-commit
pre-commit-0.39.0 bin/pre-commit
pre-commit-0.38.1 bin/pre-commit
pre-commit-0.38.0 bin/pre-commit
pre-commit-0.37.0 bin/pre-commit
pre-commit-0.36.0 bin/pre-commit
pre-commit-0.35.0 bin/pre-commit
pre-commit-0.34.0 bin/pre-commit
pre-commit-0.33.0 bin/pre-commit
pre-commit-0.32.0 bin/pre-commit
pre-commit-0.31.0 bin/pre-commit
pre-commit-0.30.0 bin/pre-commit
pre-commit-0.29.0 bin/pre-commit
pre-commit-0.28.0 bin/pre-commit
pre-commit-0.27.0 bin/pre-commit
pre-commit-0.26.0 bin/pre-commit
pre-commit-0.25.0 bin/pre-commit