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.
This commit is contained in:
Andras Timar
2011-09-14 19:56:05 +02:00
parent 38a31e08e1
commit 0f448ce7c0

View File

@@ -49,17 +49,6 @@ EOM
exit( 1 ); 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 = <FILES>) {
chomp($file);
if ($file =~ /\.po$/ && -e $file) {
system("msgcat --no-wrap $file > $file.KQnBbK6wQE;mv $file.KQnBbK6wQE $file;");
system("git add $file");
}
}
# all OK # all OK
exit( 0 ); exit( 0 );
# vi:set shiftwidth=4 expandtab: # vi:set shiftwidth=4 expandtab: