pivo_flow 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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