Преглед изворни кода

Fix detection of gitlab URLs, fixes #8402, closes #8868

Jordi Boggiano пре 4 година
родитељ
комит
4ce492d01d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Composer/Util/Git.php

+ 1 - 1
src/Composer/Util/Git.php

@@ -165,7 +165,7 @@ class Git
                     $errorMsg = $this->process->getErrorOutput();
                 }
             } elseif (
-                preg_match('{^(git)@' . self::getGitLabDomainsRegex($this->config) . ':(.+?)\.git$}i', $url, $match)
+                preg_match('{^(git)@' . self::getGitLabDomainsRegex($this->config) . ':(.+?\.git)$}i', $url, $match)
                 || preg_match('{^(https?)://' . self::getGitLabDomainsRegex($this->config) . '/(.*)}', $url, $match)
             ) {
                 if ($match[1] === 'git') {