On Wed, May 6, 2015 at 2:04 PM, Paul Tan <pyokagan@xxxxxxxxx> wrote: > Ah, I just figured out how to trigger this error. Just for reference, > before I forget: Whoops, hit send too early. The test for case (1) would look something like: test_expect_success 'fail if not on a branch' ' git remote add origin . && test_when_finished "git remote rm origin" && git checkout HEAD^{} && test_when_finished "git checkout -f copy" && test_must_fail git pull 2>out && test_i18ngrep "You are not currently on a branch" out ' -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html