[Libreoffice-commits] core.git: .git-hooks/pre-commit

Shiro Kawai (via logerrit) logerrit at kemper.freedesktop.org
Fri Oct 9 06:42:00 UTC 2020


 .git-hooks/pre-commit |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit d73776daa4a0e9397a9b86b5a250b210062fd760
Author:     Shiro Kawai <shiro at acm.org>
AuthorDate: Thu Jun 25 22:50:09 2020 -1000
Commit:     Takeshi Abe <tabe at fixedpoint.jp>
CommitDate: Fri Oct 9 08:41:27 2020 +0200

    tdf#134286: fix pre-commit hook to make hooks.allownonascii work
    
    Even if hooks.allownonascii is set to true, the current code
    compares "true\n" vs "true" and always rejects committing.
    
    Change-Id: I75494f149db2537ad54230dd684f5dac9b43c8b3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97213
    Tested-by: Takeshi Abe <tabe at fixedpoint.jp>
    Reviewed-by: Takeshi Abe <tabe at fixedpoint.jp>

diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit
index 00a5e7cd7e67..5f9f5fc5eb2b 100755
--- a/.git-hooks/pre-commit
+++ b/.git-hooks/pre-commit
@@ -298,6 +298,7 @@ if ( system( "git rev-parse --verify HEAD >/dev/null 2>&1" ) == 0 )
 
 # If you want to allow non-ascii filenames set this variable to true.
 my $allownonascii=`git config hooks.allownonascii`;
+chomp $allownonascii;
 
 # Cross platform projects tend to avoid non-ascii filenames; prevent
 # them from being added to the repository. We exploit the fact that the


More information about the Libreoffice-commits mailing list