pivo_flow 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pivo_flow/base.rb +2 -2
- data/lib/pivo_flow/version.rb +1 -1
- metadata +1 -1
data/lib/pivo_flow/base.rb
CHANGED
@@ -29,8 +29,8 @@ module PivoFlow
|
|
29
29
|
hook_path = File.join(File.dirname(__FILE__), '..', '..', 'bin', @pf_git_hook_name)
|
30
30
|
FileUtils.cp(hook_path, @pf_git_hook_path, preserve: true)
|
31
31
|
puts "File copied..."
|
32
|
-
unless File.exists?(@git_hook_path) && File.read(@git_hook_path).match(
|
33
|
-
File.open(@git_hook_path, "a") { |f| f.puts("
|
32
|
+
unless File.exists?(@git_hook_path) && File.read(@git_hook_path).match(/#{@pf_git_hook_name} \$1/)
|
33
|
+
File.open(@git_hook_path, "a") { |f| f.puts(".#{@pf_git_hook_path} $1") }
|
34
34
|
puts "Reference to pf-prepare-commit-msg added to prepare-commit-msg..."
|
35
35
|
end
|
36
36
|
unless File.executable?(@git_hook_path)
|
data/lib/pivo_flow/version.rb
CHANGED