if($ref)
$args[] = $ref;
$age = self::git_execute($args, $git_path);
- preg_match("/[0-9]{9,}/i", $age, $result);
- return $result[0];
+ if(preg_match("/[0-9]{9,}/i", $age, $result))
+ return $result[0];
+ else
+ return -1;
}
private static function parse_commit($commit_data) {