lib/githook/tasks.rb in git-hook-0.1.5 vs lib/githook/tasks.rb in git-hook-0.1.6
- old
+ new
@@ -9,10 +9,10 @@
Dir.glob(rake_files_pattern).each { |r| load r }
# 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"
+if Dir.exist?(".git") && Dir.exist?(".githook") && ARGV[0] != "install"
Dir.glob(".githook/tasks/**/*.rake").each do |rake|
begin
load rake
rescue => e
puts "Error: #{e.message} in #{rake}"