summaryrefslogtreecommitdiff
path: root/git-hooks
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2011-09-14 19:56:05 +0200
committerAndras Timar <atimar@suse.com>2011-09-14 19:56:05 +0200
commit0f448ce7c01065e2dc11baf1b4a034f0cf710146 (patch)
treed4110547481ee61d32b6263f45e8487d10207c7e /git-hooks
parent38a31e08e104e996d5317871c201bc5ac6546cfd (diff)
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.
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/pre-commit11
1 files changed, 0 insertions, 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 = <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: