We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
t/16-utils-runcmd.t
1 parent 29fc49d commit d63698bCopy full SHA for d63698b
t/16-utils-runcmd.t
@@ -76,8 +76,7 @@ subtest 'invoke Git commands for real testing error handling' => sub {
76
subtest 'invoking Git command outside of a Git repo' => sub {
77
stdout_like { $res = $git->commit({cmd => 'status', message => 'test'}) }
78
qr/.*\[warn\].*fatal: Not a git repository/i, 'Git error logged';
79
- like $res, qr"^Unable to commit via Git \($empty_tmp_dir\): fatal: (N|n)ot a git repository \(or any",
80
- 'Git error returned';
+ like $res, qr"^Unable to commit via Git \($empty_tmp_dir\): fatal: Not a git repository"i, 'Git error returned';
81
combined_like {
82
throws_ok { $git->check_sha('this-sha-does-not-exist') } qr/internal Git error/i,
83
'check throws an exception'
0 commit comments