Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add git hooks support #8251
Add git hooks support #8251
Changes from all commits
9fe98b5
43532d0
8633694
5021795
e4337e4
f8de806
d05ad4d
42b6db4
8926a7b
95f80d8
acec6a1
55ad7fc
9e31ddd
bc25d1c
f024070
5e55223
0dd7f27
762c606
47749c7
c6fe017
d02ea52
26c7677
03b7f8d
27a7896
18cec72
580d47f
53f21c7
8adcd84
213c776
fb6153f
0c1a4f3
8ae19f6
13d2708
7f9bc29
a0fec21
fd61417
d72ca11
f6bd188
04e874c
d00cf11
36ccd3a
829e133
7f32996
b26240f
2d04c24
3817235
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script assumes that the commit operation is executed from the repository's root directory. It uses relative paths like
.githooks/xxx
and.githooks\xxx
to locate the hook scripts. If the commit command is run from a subdirectory, these paths will not resolve correctly, leading to errors because the scripts cannot be found.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it can work in the subdirectory