-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Closed
Labels
Description
Describe the bug
I cannot commit to the excalidraw/excalidraw repo in GitHub Desktop. Using GitUp (another GUI) or the git CLI both work fine.L
Version & OS
GitHub Desktop Version 2.4.0, macOS Version 10.15.3 (19D76)
Steps to reproduce the behavior
- Clone
https://github.com/excalidraw/excalidraw - Run
npm installto install the dependencies - Open the repo in your favorite editor and delete lines 8–18 of
src/index.tsxso you have something to commit. - In GitHub Desktop, commit the change.
Expected behavior
The commit occurs successfully.
Actual behavior
An error dialog displaying this text:
Details
Commit failed - exit code 1 received, with output: 'husky > pre-commit (node v13.11.0)
Preparing... [started]
Preparing... [failed]
→ error: unknown option 'ignore-skip-worktree-entries'
usage: git update-index [<options>] [--] [<file>...]
[removed: listing of all options]
Cannot save the current worktree state
Running tasks... [started]
Running tasks... [skipped]
→ Skipped because of previous git error.
Applying modifications... [started]
Applying modifications... [skipped]
→ Skipped because of previous git error.
Cleaning up... [started]
Cleaning up... [skipped]
→ Skipped because of previous git error.
✖ lint-staged failed due to a git error.
Any lost modifications can be restored from a git stash:
> git stash list
stash@{0}: On master: automatic lint-staged backup
> git stash pop stash@{0}
error: unknown option 'ignore-skip-worktree-entries'
[removed: listing of all options]
Cannot save the current worktree state
husky > pre-commit hook failed (add --no-verify to bypass)
Additional context
I’m guessing this is because --ignore-skip-worktree-entries was recently added to Git and Husky is using Desktop’s bundled version for some reason?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.