Should send up a warning, and use the refName of the first result. Needs test coverage, but it's kind of a nightmare to set up