Skip to content

Commit b4f240d

Browse files
committed
Update hooks.asc
took me a few trial and errors to figure out what 'named appropriately' meant -- this would clear it up also, you had the proper name of Git rather than the .git subdirectory
1 parent 4dd5ac1 commit b4f240d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/08-customizing-git/sections/hooks.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ When you initialize a new repository with `git init`, Git populates the hooks di
1515
All the examples are written as shell scripts, with some Perl thrown in, but any properly named executable scripts will work fine – you can write them in Ruby or Python or what have you.
1616
If you want to use the bundled hook scripts, you'll have to rename them; their file names all end with `.sample`.
1717

18-
To enable a hook script, put a file in the `hooks` subdirectory of your Git directory that is named appropriately and is executable.
18+
To enable a hook script, put a file in the `hooks` subdirectory of your .git directory that is named appropriately (without any extension) and is executable.
1919
From that point forward, it should be called.
2020
We'll cover most of the major hook filenames here.
2121

0 commit comments

Comments
 (0)