ODROID-N2: git: removing '.git/pre-commit'

Change-Id: Ia44136b12853e4555159dcb5aa046ea711d0c206
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
This commit is contained in:
Dongjin Kim
2019-01-24 11:10:52 -05:00
parent 43cc9c0248
commit bf42a4f583
2 changed files with 0 additions and 25 deletions

View File

@@ -449,8 +449,6 @@ scripts_basic:
$(Q)$(MAKE) $(build)=scripts/basic
$(Q)rm -f .tmp_quiet_recordmcount
$(Q)mkdir -p $(srctree)/.git/hooks
$(Q)cp $(srctree)/scripts/amlogic/pre-commit $(srctree)/.git/hooks/pre-commit
$(Q)chmod +x $(srctree)/.git/hooks/pre-commit
# To avoid any implicit rule to kick in, define an empty command.
scripts/basic/%: scripts_basic ;

View File

@@ -1,23 +0,0 @@
#!/bin/sh
#
# pre-commit hook to run check-patch on the output and stop any commits
# that do not pass. Note, only for git-commit, and not for any of the
# other scenarios
#
# Copyright 2010 Ben Dooks, <ben-linux@fluff.org>
if git rev-parse --verify HEAD 2>/dev/null >/dev/null
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
git diff --cached --stat -p $against -- | ./scripts/checkpatch.pl --no-signoff -
if [ $? -ne 0 ]
then
exit 1;
fi
git diff --name-status --cached $against -- | ./scripts/amlogic/licence_pre.pl -