Skip to content

Commit 6e0d7ca

Browse files
authored
Merge pull request #3 from phug-php/feature/packagist-v2
Add CLI info when --git-credentials is not empty
2 parents ed20138 + 257728b commit 6e0d7ca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Phug/Split/Command/Dist.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ protected function distributePackage(Split $cli, array $package, string $branch)
121121

122122
$cli->writeLine("git clone $url $directory", 'light_green');
123123

124-
if (strlen($this->gitCredentials)) {
124+
if ($this->gitCredentials !== '') {
125+
$cli->writeLine('(using passed --git-credentials)', 'light_green');
125126
[$protocol, $url] = array_pad(explode('://', $url, 2), 2, '');
126127
$url = $protocol.'://'.$this->gitCredentials.'@'.$url;
127128
}

0 commit comments

Comments
 (0)