Ah yes, I didn't think of that. I tried it just jow, `git symbolic-ref` fails with fatal so I guess just this can be enough.