[four-in-a-row/KaKnife/four-in-a-row-vala: 63/65] Fix git hook	enablement
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [four-in-a-row/KaKnife/four-in-a-row-vala: 63/65] Fix git hook	enablement
- Date: Sun, 16 Dec 2018 03:21:56 +0000 (UTC)
commit d07e8d74ea587118c5538d10e399b72b04aafc40
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sat Dec 15 21:04:25 2018 -0600
    Fix git hook enablement
    
    It's failing with:
    
    ln: failed to create symbolic link '/home/mcatanzaro/Projects/four-in-a-row/.git/hooks/style-checker': 
File exists
    ln: failed to create symbolic link '/home/mcatanzaro/Projects/four-in-a-row/.git/hooks/style-checker': 
File exists
 autogen.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/autogen.sh b/autogen.sh
index e3e887a..58d53b9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -15,7 +15,7 @@ cd $srcdir
 # Use the style-checker as pre-commit and pre-applypatch hooks
 if [ -d $srcdir/.git ]; then
        for HOOK in pre-commit pre-applypatch; do
-                if [ ! -L $srcdir/.git/hooks/$HOOK ]; then
+                if [ ! -L $srcdir/.git/hooks/style-checker ]; then
                         ln -s ../../../libgnome-games-support/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
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]