Skip to content

Commit

Permalink
Merge pull request #152 from vax-r/Fix_pre_push_hook_bug
Browse files Browse the repository at this point in the history
Fix pre-push.hook validation bug
  • Loading branch information
jserv authored Feb 21, 2024
2 parents 390ade9 + 9fa4d90 commit 4627f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/pre-push.hook
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ NC='\033[0m' # No Color
# Author: Jim Huang <jserv@ccns.ncku.edu.tw>
# Date: Tue Feb 20 03:59:49 2024 +0800
# Bump copyright year
commit=$(git rev-list -n 1 --grep '^Bump copyright' 1aca5b98471765db50c91e03298e49bf7c08cdbc...HEAD)
commit=$(git rev-list --skip 1 --grep '^Bump copyright' 1aca5b98471765db50c91e03298e49bf7c08cdbc...HEAD)
if [ x"$commit" != x"3ed17237af5b1ead6c394df5099bc2bc1f8392df" ] ; 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."
Expand Down

0 comments on commit 4627f69

Please sign in to comment.