Commit | Line | Data |
---|---|---|
56b6dbe6 | 1 | use MooseX::Declare; |
2 | ||
3 | class Gitalist::Git::Util { | |
4 | has git => ( isa => NonEmptySimpleStr, is => 'ro', lazy_build => 1 ); | |
5 | sub _build_git { | |
6 | my $git = File::Which::which('git'); | |
7 | ||
8 | if (!$git) { | |
9 | die <<EOR; | |
10 | Could not find a git executable. | |
11 | Please specify the which git executable to use in gitweb.yml | |
12 | EOR | |
13 | } | |
14 | ||
15 | return $git; | |
16 | } | |
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | # | |
25 | } # end class |