Steps to reproduce:
- Create a repository with multiple branches
- Build a commit at the HEAD of a non-master branch
- Run git show-ref --heads
Issue:
We have a tool that runs as part of our build which resolves the current commit using git rev-parse HEAD and then uses git show-ref --heads to determine the current branch. When run on a Drydock working copy, it always returns master even when the result should be something else.