Sha256: 3e2464aefb13de316f521af9d2a3fb6ccf059e62dcc72ffbe847e4638d7c9efe
Contents?: true
Size: 461 Bytes
Versions: 7
Compression:
Stored size: 461 Bytes
Contents
require 'overcommit/utils' module Overcommit # Get configuration options from git module GitConfig module_function def comment_character char = `git config --get core.commentchar`.chomp char = '#' if char == '' char end def hooks_path path = `git config --get core.hooksPath`.chomp return File.join(Overcommit::Utils.git_dir, 'hooks') if path.empty? File.absolute_path(path, Dir.pwd) end end end
Version data entries
7 entries across 5 versions & 2 rubygems