0

I was just prompted to update oh my zsh but when I tried to do so I got the following error:

Updating Oh My Zsh
error: cannot pull with rebase: You have unstaged changes.
error: object file .git/objects/40/fafe0f59371d1a9d83b83c614acfd1d740aabb is empty
error: object file .git/objects/40/fafe0f59371d1a9d83b83c614acfd1d740aabb is empty
fatal: loose object 40fafe0f59371d1a9d83b83c614acfd1d740aabb (stored in .git/objects/40/fafe0f59371d1a9d83b83c614acfd1d740aabb) is corrupt

Anyone have an idea what to do? Haven't been able to find anything

DavidM
  • 111
  • 1
  • 7
  • It seems you have made a change to something in the oh-my-zsh folder and have not committed those changes. – evolutionxbox Dec 17 '19 at 08:54
  • @evolutionxbox I went into the zsh directory but there were no changes. Tried stashing anyway but didn't help – DavidM Dec 17 '19 at 10:21
  • The `~/.oh-my-zsh` directory? – evolutionxbox Dec 17 '19 at 10:42
  • @evolutionxbox that's the one – DavidM Dec 17 '19 at 15:28
  • Hmmm. If you run git status in that directory what does it output? – evolutionxbox Dec 17 '19 at 15:29
  • @evolutionxbox sorry was off on christmas break. When I run git status I get: ```error: object file .git/objects/40/fafe0f59371d1a9d83b83c614acfd1d740aabb is empty error: object file .git/objects/40/fafe0f59371d1a9d83b83c614acfd1d740aabb is empty fatal: loose object 40fafe0f59371d1a9d83b83c614acfd1d740aabb (stored in .git/objects/40/fafe0f59371d1a9d83b83c614acfd1d740aabb) is corrupt``` – DavidM Dec 31 '19 at 10:08
  • Ok. Other than following instructions about fixing the internals of the git repo (https://stackoverflow.com/questions/4254389/git-corrupt-loose-object) I would suggest renaming your “oh-my-zsh” folder to something else and then reinstalling it. – evolutionxbox Dec 31 '19 at 12:36

0 Answers0