Reputation: 11
Hi! I have no problem running
git log --grep="cherry picked" --all > cherrypicklog.txt
from the command line. However it failed to execute in Perl.
my $result = `git log --grep="cherry picked from commit" --all > cherrypicklog.txt`;
git
is not recognized as an internal or external command, operable program or batch file.
What am I missing? Thank you.
Upvotes: 1
Views: 2288
Reputation: 92569
I don't know much perl at all but I think this is just a general case of git not being in the PATH
environment from your perl script. Try using an absolute path:
my $result = `/path/to/bin/git log --grep="cherry picked from commit" --all > cherrypicklog.txt`;
Upvotes: 3