Skip to content

fix: searching for tree/blob hash never-ending #1472

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

Merged

Conversation

sina-hide
Copy link
Contributor

Searching for a tree or blob hash instead of a commit hash created a seemingly never-ending search (internally an exception was thrown).

Examples for non-ending searches in the SourceGit repository itself are searching for 6b83a0a (that is the tree "src" of commit 190d2ee) or e686a53 (that is the file ".gitignore" in the tree of commit 190d2ee).

Searching for a tree or blob hash instead of a commit hash created a
seemingly never-ending search (internally an exception was thrown).

Examples for non-ending searches in the SourceGit repository itself are
searching for 6b83a0a (that is the tree "src" of commit 190d2ee) or
e686a53 (that is the file ".gitignore" in the tree of commit 190d2ee).
@love-linger love-linger self-assigned this Jun 30, 2025
@love-linger love-linger added the bug Something isn't working label Jun 30, 2025
@love-linger love-linger merged commit 8602ba2 into sourcegit-scm:develop Jun 30, 2025
13 checks passed
love-linger added a commit that referenced this pull request Jun 30, 2025
Move `Commands.IsCommitSHA` testing from `Commands.QuerySingleCommit` to `ViewModels.Repository.StartSearchCommits`,  because we only need test the SHA user typed in

Signed-off-by: leo <longshuang@msn.cn>
@sina-hide sina-hide deleted the commit-search-never-ending branch June 30, 2025 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants