We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When you remove a ref option from remote configuration, and you already had lefthook install-ed, the remote syncing fails.
ref
remote
lefthook install
remote: git_url: https://github.com/evilmartians/lefthook ref: v1.1.1 config: examples/complete/lefthook.yml
$ lefthook install SYNCING SERVED HOOKS: commit-msg, pre-commit, pre-push $ git -C .git/info/lefthook-remotes/lefthook/ log --oneline 55f4381 (grafted, HEAD, tag: v1.1.1) 1.1.1: Quote path to script
remote: git_url: https://github.com/evilmartians/lefthook config: examples/complete/lefthook.yml # assumed to fetch from master branch
$ lefthook install SYNCING SERVED HOOKS: commit-msg, pre-commit, pre-push $ git -C .git/info/lefthook-remotes/lefthook/ log --oneline 55f4381 (grafted, HEAD, tag: v1.1.1) 1.1.1: Quote path to script # (!) must be master branch
Expected to checkout to the main branch of the repository. May be master or main branch at least.
master
main
Provide a default value for the ref.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary
When you remove a
ref
option fromremote
configuration, and you already hadlefthook install
-ed, the remote syncing fails.Steps to reproduce
$ lefthook install SYNCING SERVED HOOKS: commit-msg, pre-commit, pre-push $ git -C .git/info/lefthook-remotes/lefthook/ log --oneline 55f4381 (grafted, HEAD, tag: v1.1.1) 1.1.1: Quote path to script # (!) must be master branch
Expected results
Expected to checkout to the main branch of the repository. May be
master
ormain
branch at least.Possible Solution
Provide a default value for the ref.
The text was updated successfully, but these errors were encountered: