Sha256: 99b965d2c0fcb621639a48def22a1d96e1d5909bf64402d0f58da2968efcc942

Contents?: true

Size: 394 Bytes

Versions: 3

Compression:

Stored size: 394 Bytes

Contents

# we must be very careful to load outside ruby code
# because they are out of our control
# only load outside "*.rake" when there are ".git" and ".githook" folder, and target task isn't "install"
if Dir.exist?(".git") && Dir.exist?(".githook") && ARGV[0] != "install"
  begin
    load ".githook/config.rb"
  rescue => e
    puts "Error: #{e.message} in .githook/config.rb"
    exit 1
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
git-hook-0.1.8 lib/githook/config.rb
git-hook-0.1.7 lib/githook/config.rb
git-hook-0.1.6 lib/githook/config.rb