Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for sha256 git repositories #24070

Open
Digit4lSh4d0w opened this issue Feb 1, 2025 · 1 comment
Open

Support for sha256 git repositories #24070

Digit4lSh4d0w opened this issue Feb 1, 2025 · 1 comment
Labels
git Git integration feedback

Comments

@Digit4lSh4d0w
Copy link

Digit4lSh4d0w commented Feb 1, 2025

Summary

Add support for git repositories using the sha256 object format.

Currently when using a sha256 git repo, all git functions of Zed fail/error.

Steps to trigger the problem:

mkdir /tmp/gitsha256
cd $_
git init --object-format sha256
echo "test" > file.txt
git add file.txt
git commit -m "Add file.txt"
zed .

Log:

[2025-02-01T14:57:13+10:00 ERROR fs] Error { code: -21, klass: 6, message: "unknown object format 'sha256'" }`

Actual Behavior: Everything related to git doesn't work:

  • Diff indicators in buffers and editor scrollbars.
  • Inline diff toggle and reverts in the editor for unstaged changes.
  • Git status in the project panel.
  • Branch creating and switching.
  • Git blame viewing.

Expected Behavior: Everything related to git should work.

Zed Version and System Specs

Zed: v0.171.4 (Zed)
OS: Linux Wayland arch unknown
Memory: 31.3 GiB
Architecture: x86_64
GPU: AMD Radeon RX 6600 (RADV NAVI23) || radv || Mesa 24.3.4-arch1.1
@notpeter notpeter changed the title git repository object format sha256 Support for sha256 git repositories Feb 1, 2025
@notpeter notpeter added the git Git integration feedback label Feb 1, 2025
@notpeter
Copy link
Member

notpeter commented Feb 1, 2025

Thanks for clear steps -- I can reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
git Git integration feedback
Projects
None yet
Development

No branches or pull requests

2 participants