git-gui: warn when trying to commit on a detached head