billsedison / vscode-gitlens

Supercharge the Git capabilities built into Visual Studio Code — Visualize code authorship at a glance via Git blame annotations and code lens, seamlessly navigate and explore Git repositories, gain valuable insights via powerful comparison commands, and so much more
http://gitlens.amod.io
MIT License
0 stars 17 forks source link

Searching by Commit Hash may return wrong result #115

Closed cagdas001 closed 5 years ago

cagdas001 commented 5 years ago

Describe the bug Search by commit hash functionality in the Commit Search view may return wrong results.

To Reproduce Steps to reproduce the behavior:

  1. Clone the test repo from BitBucket.
    git clone https://bitbucket.org/billsedison/gitlens-test.git
  2. Open the test repo folder in VSCode with Open Folder
  3. Go to the Commit Search view
  4. In the enter commit hash field, type 28be4683 and click Search
  5. It will return the wrong commit. Find the information for commit 28be4683 in screenshots

Expected behavior Searching by commit hash should return the exact match of given hash

Screenshots commit_info

Additional context Provided in the PR (#114) description.

billsedison commented 5 years ago

Good catch, thanks.