Skip to content

pre-push hook is rejecting main #1220

@TrevorBurnham

Description

@TrevorBurnham

I found that I was unable to push my branch without --no-verify even if I made no changes.

Steps to replicate:

  1. Clone the repo
  2. Run git push origin main

Output:

husky-hook::pre-push: checking for commits that should not be pushed...
husky-hook::pre-push: BAD COMMIT(S) DETECTED!
husky-hook::pre-push: merge, delete, reword, or otherwise rectify the following commits before trying again:

husky-hook::pre-push: markdown files at HEAD with unmerged replacer regions:

xargs: invalid option -- d
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements] [-S replsize]]
             [-J replstr] [-L number] [-n number [-x]] [-P maxprocs]
             [-s size] [utility [argument ...]]

husky-hook::pre-push: files at HEAD with "XXX" error comments:

xargs: invalid option -- d
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements] [-S replsize]]
             [-J replstr] [-L number] [-n number [-x]] [-P maxprocs]
             [-s size] [utility [argument ...]]

husky-hook::pre-push: files at HEAD with erroneously focused tests:

xargs: invalid option -- d
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements] [-S replsize]]
             [-J replstr] [-L number] [-n number [-x]] [-P maxprocs]
             [-s size] [utility [argument ...]]

husky-hook::pre-push: package.json files at HEAD with incomplete scripts:

xargs: invalid option -- d
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements] [-S replsize]]
             [-J replstr] [-L number] [-n number [-x]] [-P maxprocs]
             [-s size] [utility [argument ...]]

husky - pre-push script failed (code 2)

(As of this writing, main points to b0f880d.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions