Skip to content

Commit 307bdd5

Browse files
authored
make what no commits needed means more clear
1 parent 3df2947 commit 307bdd5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sections/new-hooks.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ interactively:
106106
_note_: you may need to provide `--commit-msg-filename` when using this
107107
command with hook types `prepare-commit-msg` and `commit-msg`.
108108

109-
a commit is not necessary to `try-repo` on a local
110-
directory. `pre-commit` will clone any tracked uncommitted changes.
109+
Specifying a commit is not necessary to `try-repo` on a local
110+
directory, however, the repository must have at least one commit in its history.
111+
`pre-commit` will clone any tracked uncommitted changes.
111112

112113
```pre-commit
113114
~/work/hook-repo $ git checkout origin/main -b feature

0 commit comments

Comments
 (0)