Forum Discussion

omerzidkoni's avatar
omerzidkoni
Copper Contributor
Nov 10, 2022

Azure Repos - Tagging a commit produces different hash in .git folder

Hi, As I was working on a project in Azure Repos, I noticed that the commit hash value inside .git/refs/tags/my-tag compared to the hash of the commit shown in the UI (which is the 'real' one) differed. To reproduce, I tag a commit, run 'git fetch' locally, and look for the tag hash in the .git folder. The hash in .git/refs/tags/my-tag is different from the commit hash I see in the Azure Repos UI (under Repos -> Tags). How do I get the commit hash that the tag points to (the 'real' one)?

Thanks in advance.

 

 

No RepliesBe the first to reply

Resources