detached head warning message is properly formatted