Disabled some menu items for bare repositories. Issue #1896