mirror of
https://github.com/git/git.git
synced 2025-09-10 22:44:50 +02:00
Meta/cook: fix reading from the standard input stream
This commit is contained in:
4
cook
4
cook
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user