[four-in-a-row/KaKnife/four-in-a-row-vala: 30/65] changed git hooks



commit 7c17e65f67b80e0335adfd2def8beadc5c8cf4af
Author: Jacob Humphrey <jacob ryan humphrey gmail com>
Date:   Fri Dec 14 18:02:10 2018 -0600

    changed git hooks

 autogen.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/autogen.sh b/autogen.sh
index 6ef8fc6..e3e887a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -17,7 +17,9 @@ if [ -d $srcdir/.git ]; then
        for HOOK in pre-commit pre-applypatch; do
                 if [ ! -L $srcdir/.git/hooks/$HOOK ]; then
                         ln -s ../../../libgnome-games-support/style-checker \
-                                $srcdir/.git/hooks/$HOOK && echo "Enabled $HOOK style checker."
+                                $srcdir/.git/hooks/style-checker && echo "Enabled $HOOK style checker."
+                        echo $srcdir/.git/hooks/style-checker --no-whitespace-before-paren > 
$srcdir/.git/hooks/$HOOK
+                        chmod +x $srcdir/.git/hooks/$HOOK
                 fi
         done
 fi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]