I have a (* no branch) after doing a checkout -q -f origin/master

When checkout -q -f master is called everything is fine.
Is it a bug?