You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my dotfiles repo, I am trying to update some git submodules, but when I do it, overcommit fails out and I am unable to commit.
~/dotfiles git:master ❯❯❯ git commit
Running pre-commit hooks
✓ All pre-commit hooks passed
Unable to restore working tree after pre-commit hooks run:
STDOUT:
STDERR:No stash found.
At the end of this, I am left with my updated submodules uncommitted and unstaged. This might be happening because overcommit is creating a stash with nothing in it (because submodules are weird), which results in no stash getting created.
I believe I used to be able to do this, so I think this might be a problem with the latest release. overcommit 0.23.0
Activity
lencioni commentedon Mar 25, 2015
As a temporary workaround, I just did this:
jawshooah commentedon Mar 25, 2015
Worse still, it ignores the fact that no stash was created and applies the most recent stash anyway!
We should only
git reset --hardandgit stash popif a stash was successfully created.sds commentedon Mar 26, 2015
Fixed by #149. Thanks!