Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 5427 (#4356)
Browse files Browse the repository at this point in the history
Co-authored-by: archerzz <archerzz@gmail.com>
  • Loading branch information
2 people authored and antkmsft committed Apr 5, 2023
1 parent 32c0443 commit f9deed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eng/common/scripts/Cadl-Project-Sync.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ function GetGitRemoteValue([string]$repo) {
$gitRemotes = (git remote -v)
foreach ($remote in $gitRemotes) {
if ($remote.StartsWith("origin")) {
if ($remote -match 'https://github.com/\S+[\.git]') {
if ($remote -match 'https://github.com/\S+') {
$result = "https://github.com/$repo.git"
break
} elseif ($remote -match "git@github.com:\S+[\.git]"){
} elseif ($remote -match "git@github.com:\S+"){
$result = "git@github.com:$repo.git"
break
} else {
Expand Down

0 comments on commit f9deed8

Please sign in to comment.