sub parsecontrol {
my ($file, $desc, $allowsigned) = @_;
my $fh = new IO::Handle;
- open $fh, '<', $file or die "$file: $!";
+ open $fh, '<', $file or fail "open $file ($desc): $!";
my $c = parsecontrolfh($fh,$desc,$allowsigned);
$fh->error and confess $!;
close $fh;
# git update-ref doesn't always update, in this case. *sigh*
my $authline = (ucfirst _us()).
' <'._us().'@example.com> 1000000000 +0000';
- my $dummy = make_commit_text <<END;
+ my $dummy = make_commit_text <<ENDU.<<END;
tree $tree
parent $value
author $authline
committer $authline
+ENDU
Dummy commit - do not use
END
runcmd qw(git update-ref -m), _us()." - dummy", $ref, $dummy;