Showing 1 changed files with 6 additions and 0 deletions
+6
lib/Gitprep.pm
... ...
@@ -11,6 +11,12 @@ use Gitprep::Manager;
11 11
 use Scalar::Util 'weaken';
12 12
 use Validator::Custom;
13 13
 
14
+# Digest::SHA loading to Mojo::Util if not loaded
15
+{
16
+  package Mojo::Util;
17
+  eval {require Digest::SHA; import Digest::SHA qw(sha1 sha1_hex)};
18
+}
19
+
14 20
 our $VERSION = '1.0';
15 21
 
16 22
 has 'dbi';