From 257728bc519d8c82a5497f42267099c9cfc326a9 Mon Sep 17 00:00:00 2001 From: KyleKatarn Date: Thu, 12 Mar 2026 11:49:54 +0100 Subject: [PATCH] Add CLI info when --git-credentials is not empty --- src/Phug/Split/Command/Dist.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Phug/Split/Command/Dist.php b/src/Phug/Split/Command/Dist.php index 566a2cf..c418103 100644 --- a/src/Phug/Split/Command/Dist.php +++ b/src/Phug/Split/Command/Dist.php @@ -121,7 +121,8 @@ protected function distributePackage(Split $cli, array $package, string $branch) $cli->writeLine("git clone $url $directory", 'light_green'); - if (strlen($this->gitCredentials)) { + if ($this->gitCredentials !== '') { + $cli->writeLine('(using passed --git-credentials)', 'light_green'); [$protocol, $url] = array_pad(explode('://', $url, 2), 2, ''); $url = $protocol.'://'.$this->gitCredentials.'@'.$url; }