Skip to content

Commit 178bfd8

Browse files
authored
Add -L flag on curl in docs to allow redirection (#39)
1 parent 3736433 commit 178bfd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Offers an interactive prompt if any of the rules are detected to be broken.
2727
At the root of the repository, run:
2828

2929
```sh
30-
curl https://cdn.rawgit.com/tommarshall/git-good-commit/v0.6.1/hook.sh > .git/hooks/commit-msg && chmod +x .git/hooks/commit-msg
30+
curl -L https://cdn.rawgit.com/tommarshall/git-good-commit/v0.6.1/hook.sh > .git/hooks/commit-msg && chmod +x .git/hooks/commit-msg
3131
```
3232

3333
### Globally
@@ -37,7 +37,7 @@ To use the hook globally, you can use `git-init`'s template directory:
3737
```sh
3838
mkdir -p ~/.git-template/hooks
3939
git config --global init.templatedir '~/.git-template'
40-
curl https://cdn.rawgit.com/tommarshall/git-good-commit/v0.6.1/hook.sh > ~/.git-template/hooks/commit-msg && chmod +x ~/.git-template/hooks/commit-msg
40+
curl -L https://cdn.rawgit.com/tommarshall/git-good-commit/v0.6.1/hook.sh > ~/.git-template/hooks/commit-msg && chmod +x ~/.git-template/hooks/commit-msg
4141
```
4242

4343
The hook will now be present after any `git init` or `git clone`. You can [safely re-run `git init`](http://stackoverflow.com/a/5149861/885540) on any existing repositories to add the hook there.

0 commit comments

Comments
 (0)