Skip to content

Commit b6ddbc4

Browse files
author
Shane da Silva
committed
Use \ for line concatenation in overcommit-hook
Appease the Rubocop gods. Change-Id: Iaefe596d0d352ba90de574b31e46bec0c59719c2 Reviewed-on: http://gerrit.causes.com/37386 Tested-by: jenkins <jenkins@causes.com> Reviewed-by: Shane da Silva <shane@causes.com>
1 parent 83c042f commit b6ddbc4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

template-dir/hooks/overcommit-hook

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ end
1111

1212
hook_type = File.basename($0)
1313
if hook_type == 'overcommit-hook'
14-
puts "Don't run `overcommit-hook` directly; it is intended to be symlinked " <<
14+
puts "Don't run `overcommit-hook` directly; it is intended to be symlinked " \
1515
"by each hook in a repository's .git/hooks directory."
1616
exit 64 # EX_USAGE
1717
end
1818

1919
begin
2020
require 'overcommit'
2121
rescue LoadError
22-
puts 'Overcommit is not installed. Install it to manage git hooks for ' <<
22+
puts 'Overcommit is not installed. Install it to manage git hooks for ' \
2323
'this repository? (y/n)'
2424

2525
# If the hook isn't interactive, we need to map STDIN to keyboard manually
@@ -42,9 +42,9 @@ rescue LoadError
4242
end
4343

4444
if Gem::Version.new(Overcommit::VERSION) < Gem::Version.new('0.6.0')
45-
puts "Installed version of Overcommit (#{Overcommit::VERSION}) is " <<
46-
"incompatible with the installed hooks.\n" <<
47-
'Run `gem install overcommit && overcommit --install` to ensure ' <<
45+
puts "Installed version of Overcommit (#{Overcommit::VERSION}) is " \
46+
"incompatible with the installed hooks.\n" \
47+
'Run `gem install overcommit && overcommit --install` to ensure ' \
4848
"you're up-to-date."
4949
exit 64 # EX_USAGE
5050
end

0 commit comments

Comments
 (0)