Skip to content

Commit d03c42a

Browse files
committed
Adjust the range for pre-push git hook
Since the copyright date was changed, we have to adjust the range to make git hook work again.
1 parent 3ed1723 commit d03c42a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/pre-push.hook

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ YELLOW='\033[1;33m'
88
NC='\033[0m' # No Color
99

1010
# Validate repository
11-
# commit c2084e68866b7eaabd95f671319d3ee01e923b32 (HEAD -> master)
12-
# Author: Jim Huang <jserv[email protected]>
13-
# Date: Tue Jan 24 14:59:36 2023 +0800
11+
# commit 3ed17237af5b1ead6c394df5099bc2bc1f8392df (HEAD -> bump-copyright-year)
12+
# Author: Jim Huang <jserv@ccns.ncku.edu.tw>
13+
# Date: Tue Feb 20 03:59:49 2024 +0800
1414
# Bump copyright year
15-
commit=$(git rev-list -n 1 --grep '^Bump copyright' 0e922a9b7da49726c91f1d7176bd5fa0cada97be...HEAD)
16-
if [ x"$commit" != x"c2084e68866b7eaabd95f671319d3ee01e923b32" ] ; then
15+
commit=$(git rev-list -n 1 --grep '^Bump copyright' 1aca5b98471765db50c91e03298e49bf7c08cdbc...HEAD)
16+
if [ x"$commit" != x"3ed17237af5b1ead6c394df5099bc2bc1f8392df" ] ; then
1717
echo -e "${RED}ERROR${NC}: This repository is insane."
1818
echo -e "Make sure you did fork from https://github.com/sysprog21/lab0-c recently."
1919
echo ""

0 commit comments

Comments
 (0)