ComfyUI
ComfyUI copied to clipboard
ComfyUI Git Pull Update Fails with "fatal: bad object" and "did not send all necessary objects" Errors
Hello everyone,
I'm experiencing an issue with updating ComfyUI on my macOS system and could really use some guidance. Until yesterday, updates were working flawlessly. However, when attempting to update today using the manager, I encountered the following errors:
ComfyUI update fail: Cmd('git') failed due to: exit code(1) cmdline: git pull -v -- origin stderr: 'fatal: bad object refs/remotes/origin/master 2 error: https://github.com/comfyanonymous/ComfyUI.git did not send all necessary objects'
I've tried removing corrupted files from the .git directory (logs/HEAD 2 and refs/heads/master 2), followed by running git gc. Unfortunately, It did't resolve the issue.
Has anyone encountered a similar problem, or does anyone have insights on what might be causing these errors and how to resolve them? Any help or suggestions would be greatly appreciated.
Thank you in advance for your time and assistance!
Clone ComfyUI into a completely separate space, remove the existing .git, and overwrite it with the .git from the newly cloned location.
Don't forget to perform git reset --hard and remove untracked files with git status because they are inconsistent with the current state.
Thanks for your help @ltdrdata It's getting better. I don't get the error message anymore, but It thinks it is up to date. I'm gonna wait the next update to test again.
Thanks