]> Dogcows Code - chaz/git-codeowners/blobdiff - t/app-codeowners.t
do not die in test if there is no git executable
[chaz/git-codeowners] / t / app-codeowners.t
index e3a1e2ea9afae009084ee1143eaf8f965dce2368..64415394b69acb1e0b01d6ac004d90d789123fb4 100644 (file)
@@ -76,7 +76,8 @@ done_testing;
 exit;
 
 sub _can_git {
-    my (undef, $version) = run_git('--version');
+    my (undef, $version) = eval { run_git('--version') };
+    note $@ if $@;
     note "Found: $version" if $version;
     return $version && $version ge 'git version 1.8.5';     # for -C flag
 }
This page took 0.020197 seconds and 4 git commands to generate.