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:
@@ -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 = <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
|
||||
exit( 0 );
|
||||
# vi:set shiftwidth=4 expandtab:
|
||||
|
||||
Reference in New Issue
Block a user