Skip to content

Commit faa0e5c

Browse files
authored
Merge pull request #6823 from Martchus/cmd-run-test
Avoid failing check in `t/16-utils-runcmd.t`
2 parents 29fc49d + d63698b commit faa0e5c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

t/16-utils-runcmd.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ subtest 'invoke Git commands for real testing error handling' => sub {
7676
subtest 'invoking Git command outside of a Git repo' => sub {
7777
stdout_like { $res = $git->commit({cmd => 'status', message => 'test'}) }
7878
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';
79+
like $res, qr"^Unable to commit via Git \($empty_tmp_dir\): fatal: Not a git repository"i, 'Git error returned';
8180
combined_like {
8281
throws_ok { $git->check_sha('this-sha-does-not-exist') } qr/internal Git error/i,
8382
'check throws an exception'

0 commit comments

Comments
 (0)