t / t4018 / perl-skip-end-of-heredocon commit for-each-ref: do not segv with %(HEAD) on an unborn branch (84679d4)
   1sub RIGHTwithheredocument {
   2        print <<"EOF"
   3decoy here-doc
   4EOF
   5        # some lines of context
   6        # to pad it out
   7        print "ChangeMe\n";
   8}