Permalink
Browse files

githooks: Workaround for .gitattributes' lack of whitespace support.

  • Loading branch information...
Fredrik Eldh
Fredrik Eldh committed Nov 4, 2011
1 parent 0e81d4f commit ba53797d2c079e01cb209416f7b4753491c03cab
Showing with 1 addition and 1 deletion.
  1. +1 −1 githooks/writeAttributeFile.rb
@@ -27,7 +27,7 @@ def includeOneOf?(array)
@outFile = open(outName, 'w')
inFile = open(inName, 'r')
def putLine(line)
- @outFile.puts line.gsub(' ', '\ ') + ' -diff' unless(line.includeOneOf?(CHECK_PATTERNS))
+ @outFile.puts line.gsub(' ', '.') + ' -diff' unless(line.includeOneOf?(CHECK_PATTERNS))
end
inFile.each do |line|
line.strip!

0 comments on commit ba53797

Please sign in to comment.