From 0f448ce7c01065e2dc11baf1b4a034f0cf710146 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Wed, 14 Sep 2011 19:56:05 +0200 Subject: [PATCH] remove msgcat commit hook on .po file fdo#40706 Originally it was planned to be useful, but it slows down commit operations significantly. In practice only I commit po files to this repo and I do the msgcat --no-wrap anyway. Also, as reported in fdo#40706, when msgcat was not available, empty file would be committed. --- git-hooks/pre-commit | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit index d0379c2e633..14ed29c5fe8 100755 --- a/git-hooks/pre-commit +++ b/git-hooks/pre-commit @@ -49,17 +49,6 @@ EOM exit( 1 ); } -# run 'msgcat --nowrap' when committing *.po files -open(FILES, "git diff-index --cached --name-only $against |") || die "Cannot run git diff-index."; -while (my $file = ) { - chomp($file); - if ($file =~ /\.po$/ && -e $file) { - system("msgcat --no-wrap $file > $file.KQnBbK6wQE;mv $file.KQnBbK6wQE $file;"); - system("git add $file"); - } -} - - # all OK exit( 0 ); # vi:set shiftwidth=4 expandtab: