Skip to content

Commit

Permalink
Merge pull request #24 from SenseiTarzan/patch-1
Browse files Browse the repository at this point in the history
fix cli no detect branch and vendor in .poggit.yml
  • Loading branch information
SOF3 authored Jan 30, 2023
2 parents b5fe3d7 + f95a272 commit 4fa0f58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
}

$src = $lib["src"];
$vendor = strtolower($libDeclaration["vendor"] ?? "poggit-project");
$vendor = strtolower($lib["vendor"] ?? "poggit-project");
if($vendor === "raw"){
if(strpos($src, "http://") === 0 || strpos($src, "https://") === 0){
$file = $src;
Expand Down Expand Up @@ -122,7 +122,7 @@
$srcOwner = array_pop($srcParts) ?? $project->repo[0];

$version = $lib["version"] ?? "*";
$branch = $libDeclaration["branch"] ?? ":default";
$branch = $lib["branch"] ?? ":default";

$file = "https://poggit.pmmp.io/v.dl/$srcOwner/$srcRepo/" . urlencode($srcProject) . "/" . urlencode($version) . "?branch=" . urlencode($branch);
}
Expand Down

0 comments on commit 4fa0f58

Please sign in to comment.