We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f7ac15 commit ea7ceddCopy full SHA for ea7cedd
eng/common/scripts/Cadl-Project-Sync.ps1
@@ -44,10 +44,10 @@ function GetGitRemoteValue([string]$repo) {
44
$gitRemotes = (git remote -v)
45
foreach ($remote in $gitRemotes) {
46
if ($remote.StartsWith("origin")) {
47
- if ($remote -match 'https://github.com/\S+[\.git]') {
+ if ($remote -match 'https://github.com/\S+') {
48
$result = "https://github.com/$repo.git"
49
break
50
- } elseif ($remote -match "git@github.com:\S+[\.git]"){
+ } elseif ($remote -match "git@github.com:\S+"){
51
$result = "git@github.com:$repo.git"
52
53
} else {
0 commit comments