lib/penchant/hooks.rb in penchant-0.2.24 vs lib/penchant/hooks.rb in penchant-0.2.26

- old
+ new

@@ -10,15 +10,12 @@ Dir[File.join(HOOKS_DIR, '*')].each do |file| target = File.join(GIT_HOOKS_DIR, File.basename(file)) return false if !File.symlink?(target) return false if !File.expand_path(File.readlink(target)) == File.expand_path(file) end - - true - else - # no script/hooks dir, so we must not want them - true end + + true end def self.install! if git? puts "[penchant] installing git hooks"