From 1fc33ab1f7f810a57f1f4003d2358c6e817b76d5 Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Thu, 20 Feb 2025 05:32:08 +0800 Subject: [PATCH] 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. Change-Id: I71bdd50839f330c45b505c37ec30b690014b2f59 --- scripts/pre-push.hook | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/pre-push.hook b/scripts/pre-push.hook index ca836927c..4654f2663 100755 --- a/scripts/pre-push.hook +++ b/scripts/pre-push.hook @@ -8,12 +8,12 @@ YELLOW='\033[1;33m' NC='\033[0m' # No Color # Validate repository -# commit 3ed17237af5b1ead6c394df5099bc2bc1f8392df (HEAD -> bump-copyright-year) -# Author: Jim Huang -# Date: Tue Feb 20 03:59:49 2024 +0800 -# Bump copyright year -commit=$(git rev-list --skip 1 --grep '^Bump copyright' 1aca5b98471765db50c91e03298e49bf7c08cdbc...HEAD) -if [ x"$commit" != x"3ed17237af5b1ead6c394df5099bc2bc1f8392df" ] ; then +# commit 50c5ac53d31adf6baac4f8d3db6b3ce2215fee40 +# Author: Jim Huang +# Date: Thu Feb 20 05:20:55 2025 +0800 +# Bump copyright year +commit=$(git rev-list --skip 1 --grep '^Bump copyright' 0c2680aedb95dba0b7faa0b3acf784b55826652f...HEAD) +if [ x"$commit" != x"50c5ac53d31adf6baac4f8d3db6b3ce2215fee40" ] ; then echo -e "${RED}ERROR${NC}: This repository is insane." echo -e "Make sure you did fork from https://github.com/sysprog21/lab0-c recently." echo ""