use commit hash as git branch with detached HEAD

Abbreviated to 7 characters to match `git rev-parse --short HEAD`.