Skip to content

no matching push files #603

Answered by mrexox
trobrock asked this question in Q&A
Jan 8, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Thank you for the verbose logs. You are right, lefthook doesn't know what branch to use for the comparisson. For example, in case of lefthook repo I have the following output for git branch --remotes:

  fork/fix/uninstall-all-possible-formats
  fork/fix/use-empty-stdin-by-default
  fork/fix/windows-escaping-issues
  fork/master
  fork/refactoring
  origin/0-7-stable
  origin/HEAD -> origin/master
  origin/feat/add-priorities-to-commands
  origin/hyperupcall-recursive-search
  origin/master

In my case lefthook will use origin/master because origin/HEAD is pointing on it.

In your case you can fix it by git remote set-head origin main. But this is only if your repo has main as a default bra…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@trobrock
Comment options

@mrexox
Comment options

Answer selected by trobrock
@mrexox
Comment options

@trobrock
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants