Fixed an issue in Git snapshots.
This commit is contained in:
1 parent
9f3a8624c9
commit
68c4ca7b4a
1 file changed
+5
-3
@@ -22,9 +22,11 @@ our $Bin = $Bin; ## no critic qw(NamingConventions::Capitalization Variables::Pr
|
|||||||
BEGIN {
|
BEGIN {
|
||||||
unshift @INC, "$Bin/../lib";
|
unshift @INC, "$Bin/../lib";
|
||||||
|
|
||||||
open my $gitfh, '<', "$Bin/../.git/refs/heads/indev";
|
if (-d "$Bin/../.git") {
|
||||||
our $VERGITREV = substr readline $gitfh, 0, 7;
|
open my $gitfh, '<', "$Bin/../.git/refs/heads/indev";
|
||||||
close $gitfh;
|
our $VERGITREV = substr readline $gitfh, 0, 7;
|
||||||
|
close $gitfh;
|
||||||
|
}
|
||||||
|
|
||||||
# Set version information.
|
# Set version information.
|
||||||
use constant { ## no critic qw(ValuesAndExpressions::ProhibitConstantPragma)
|
use constant { ## no critic qw(ValuesAndExpressions::ProhibitConstantPragma)
|
||||||
|
|||||||
Reference in new issue
Block a user