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
Add support for git repositories using the sha256 object format.
Currently, when using a sha256 git repo, the branch and status display functions do not work.
Steps to trigger the problem:
1. Create sha1 git repo:
Create folder for git repo with sha1: mkdir test-sha1.
Enter to directory: cd test-sha1.
Create repository with sha1 object format: git init --object-format sha1.
Create file: echo "test" > file.txt.
Stage file: git add file.txt.
Commit file: git commit -m "Add file.txt".
Return: cd ...
2. Create sha256 git repo:
Create folder for git repo with sha256: mkdir test-sha256.
Enter to directory: cd test-sha256.
Create repository with sha256 object format: git init --object-format sha256.
Create file: echo "test" > file.txt.
Stage file: git add file.txt.
Commit file: git commit -m "Add file.txt".
Return: cd ...
3. Check the result:
Run eza: eza --long --git-repos.
Catch the wrong behavior.
Actual Behavior:
The functions related to displaying the branch name and repository status are not working.
Example (from my system):
... + main book-rust-in-action
... | main configs
... - - cryptography
... - - docker-compose-files
In the above example, I have left only the directories containing the git repositories. As you can see, some of them use sha1, while others use sha256.
Repositories using sha256 are displayed as simple directories without git repositories.
Expected Behavior:
The functions related to displaying the branch name and repository status are working.
Eza version and system specs:
Eza: v0.20.23 [+git]
OS: Archlinux 6.13.5-zen1-1-zen
The text was updated successfully, but these errors were encountered:
Moving from libgit2 would likely be a much larger scope issue (not that it would be unwelcome, if there is rust libraries with acceptable maturity and feature parity).
Summary
Add support for git repositories using the sha256 object format.
Currently, when using a sha256 git repo, the branch and status display functions do not work.
Steps to trigger the problem:
1. Create sha1 git repo:
mkdir test-sha1
.cd test-sha1
.git init --object-format sha1
.echo "test" > file.txt
.git add file.txt
.git commit -m "Add file.txt"
.cd ..
.2. Create sha256 git repo:
mkdir test-sha256
.cd test-sha256
.git init --object-format sha256
.echo "test" > file.txt
.git add file.txt
.git commit -m "Add file.txt"
.cd ..
.3. Check the result:
eza --long --git-repos
.Actual Behavior:
The functions related to displaying the branch name and repository status are not working.
Example (from my system):
In the above example, I have left only the directories containing the git repositories. As you can see, some of them use sha1, while others use sha256.
Repositories using sha256 are displayed as simple directories without git repositories.
Expected Behavior:
The functions related to displaying the branch name and repository status are working.
Eza version and system specs:
The text was updated successfully, but these errors were encountered: