Browse files

Git::Repository::Command: testing if the command is git is done later…

…, and should update the cache
  • Loading branch information...
1 parent 303fba8 commit 599b9fbad5e925a3f83f980135a1f76db9fca012 @book book committed Oct 21, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Git/Repository/Command.pm
View
2 lib/Git/Repository/Command.pm
@@ -68,7 +68,7 @@ sub _is_git {
my $out;
my $pid = eval { open( $out, "-|", $git, '--version' ) };
waitpid $pid, 0;
- my $version = <$out> or return;
+ my $version = <$out>;
# does it really look like git?
return $binary{$type}{$key}{$binary}

0 comments on commit 599b9fb

Please sign in to comment.