You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-40Lines changed: 2 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,10 +33,7 @@ Main features:
33
33
*[Auto install](#auto-install)
34
34
*[Hook configuration](#hook-configuration)
35
35
*[Git submodules](#git-submodules)
36
-
*[Custom paths](#custom-paths)
37
-
*[Git path](#git-path)
38
-
*[Git hooks path](#git-hooks-path)
39
-
*[Mix path](#mix-path)
36
+
*[Custom mix path](#custom-mix-path)
40
37
*[Troubleshooting in docker containers](#troubleshooting-in-docker-containers)
41
38
*[Example config](#example-config)
42
39
*[Task types](#task-types)
@@ -122,42 +119,7 @@ Setting a custom _git hooks_ config path is also supported:
122
119
git config core.hooksPath .myCustomGithooks/
123
120
```
124
121
125
-
### Custom paths
126
-
127
-
By default this library expects your Elixir project to be the root of the git
128
-
repository. If this is the case, you might need to configure custom paths based
129
-
on your folders relative paths.
130
-
131
-
#### Git path
132
-
133
-
If you need to override the folder of the _git path_ you
134
-
can add the following configuration:
135
-
136
-
```elixir
137
-
config :git_hooks,
138
-
git_path:"../.git"
139
-
```
140
-
141
-
This is useful if the root of your project is not managed directly by the VCS
142
-
but the parent.
143
-
144
-
If you set the `git_path`, the git hooks path will expect to be inside
145
-
the `hooks` folder of the provided path configuration. In the example above, `../.git/hooks`.
146
-
147
-
#### Git hooks path
148
-
149
-
If you need to override the folder of the _git hooks path_ you
150
-
can add the following configuration:
151
-
152
-
```elixir
153
-
config :git_hooks,
154
-
git_hooks_path:"../.git/hooks"
155
-
```
156
-
157
-
This is useful if the root of your project is not managed directly by the VCS
158
-
but the parent and you are using a custom path for your git hooks.
159
-
160
-
#### Mix path
122
+
### Custom mix path
161
123
162
124
This library expects `elixir` to be installed in your system and the `mix` binary to be available. If you want to provide a specific path to run the `mix` executable, it can be done using the `mix_path` configuration.
0 commit comments