Skip to content

Commit

Permalink
Adjust the range for pre-push git hook
Browse files Browse the repository at this point in the history
Since the copyright date was changed, we have to adjust the range to
make git hook work again.
  • Loading branch information
jserv committed Feb 7, 2022
1 parent ef939f7 commit d941f0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pre-push.hook
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ NC='\033[0m' # No Color
# Date: Wed Jan 22 14:13:06 2020 +0000
#
# Bump copyright year
commit=`git rev-list -n 1 --grep '^Bump copyright' 0f146d62ecba1f0c098165273204d35cfa9d07ec...HEAD`
if [ x"$commit" != x"d9805e67e74ea3a05956d92447bbe67214154c06" ] ; then
commit=`git rev-list -n 1 --grep '^Bump copyright' e1036247e836ff8d71c286b71b02b00e65635afa...HEAD`
if [ x"$commit" != x"6b6c22dabb952d1dfbf4976c9ad5a883b8cb8cbd" ] ; 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 ""
Expand Down

0 comments on commit d941f0c

Please sign in to comment.