Skip to content

Commit 4627f69

Browse files
authored
Merge pull request #152 from vax-r/Fix_pre_push_hook_bug
Fix pre-push.hook validation bug
2 parents 390ade9 + 9fa4d90 commit 4627f69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pre-push.hook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ NC='\033[0m' # No Color
1212
# Author: Jim Huang <[email protected]>
1313
# Date: Tue Feb 20 03:59:49 2024 +0800
1414
# Bump copyright year
15-
commit=$(git rev-list -n 1 --grep '^Bump copyright' 1aca5b98471765db50c91e03298e49bf7c08cdbc...HEAD)
15+
commit=$(git rev-list --skip 1 --grep '^Bump copyright' 1aca5b98471765db50c91e03298e49bf7c08cdbc...HEAD)
1616
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."

0 commit comments

Comments
 (0)