From 3d15c024a15543ecca55b1512b4469337fb71fcd Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 29 Mar 2010 18:17:23 -0500 Subject: [PATCH] Move git hooks into lib --- lib/cached_externals.rb | 2 +- {script => lib/cached_externals}/git-hooks/post-checkout | 0 {script => lib/cached_externals}/git-hooks/post-merge | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {script => lib/cached_externals}/git-hooks/post-checkout (100%) rename {script => lib/cached_externals}/git-hooks/post-merge (100%) diff --git a/lib/cached_externals.rb b/lib/cached_externals.rb index 2b25f0c..f8b7cce 100644 --- a/lib/cached_externals.rb +++ b/lib/cached_externals.rb @@ -92,7 +92,7 @@ task :install_hooks, :except => { :no_release => true } do require 'fileutils' - Dir[File.expand_path('../../script/git-hooks', __FILE__) + '/*'].each do |hook| + Dir["#{File.dirname(__FILE__)}/cached_externals/git-hooks/*"].each do |hook| FileUtils.cp hook, ".git/hooks" FileUtils.chmod 0755, ".git/hooks/#{File.basename(hook)}" end diff --git a/script/git-hooks/post-checkout b/lib/cached_externals/git-hooks/post-checkout similarity index 100% rename from script/git-hooks/post-checkout rename to lib/cached_externals/git-hooks/post-checkout diff --git a/script/git-hooks/post-merge b/lib/cached_externals/git-hooks/post-merge similarity index 100% rename from script/git-hooks/post-merge rename to lib/cached_externals/git-hooks/post-merge