Commit 9fa4d90
committed
Fix pre-push.hook validation bug
We utilize ./scripts/pre-push.hook to do the checking when trying to do
`git push`. One of the stages is to check a speicific commit hash number
for validation of the repository.
It tries to get the hash number of commit
3ed1723, using a filter to get the
value of `commit` whose git log message matches the pattern specified
in line 15 of `/scripts/pre-push.hook`.
However when merging the commit into the master branch, it generated a
new commit which is 390ade9, so the
value of `commit` in line 15 of `/scripts/pre-push.hook` will be
incorrect.
That's why we modify a small part of the command in line 15 from `-n 1`
to `--skip 1`, so we can neglect the merging commit and get the actual
commit hash number we want.
Fix #1511 parent 390ade9 commit 9fa4d90
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments