diff --git a/src/Git/Git.php b/src/Git/Git.php index 8a884e7..7f7973e 100644 --- a/src/Git/Git.php +++ b/src/Git/Git.php @@ -66,7 +66,11 @@ public function check_is_archived_github_repository($repository) return false; } $repo = $substrings[$num_substrings - 1]; - if (false !== strpos($num_substrings, '@')) { + if (false !== strpos($repo, '.git')) { # repo.git + $repo = str_replace('.git', '', $repo); + } + + if (false !== strpos($repository, '@')) { # ssh formatted... $org = explode(':', $substrings[$num_substrings - 2])[1]; } else {