Browse Source

Meta/cook: fix reading from the standard input stream

todo
Junio C Hamano 12 years ago
parent
commit
9d2b054c2d
  1. 4
      cook

4
cook

@ -862,8 +862,10 @@ if ($wildo) { @@ -862,8 +862,10 @@ if ($wildo) {
if (!@ARGV) {
open($fd, "<", "Meta/whats-cooking.txt");
} elsif (@ARGV != 1) {
print STDERR "$0 --wildo [filename|HEAD]\n";
print STDERR "$0 --wildo [filename|HEAD|-]\n";
exit 1;
} elsif ($ARGV[0] eq '-') {
$fd = \*STDIN;
} elsif ($ARGV[0] =~ /^HEAD/) {
open($fd, "-|",
qw(git --git-dir=Meta/.git cat-file -p),

Loading…
Cancel
Save