Skip to content

Commit ea7cedd

Browse files
azure-sdkarcherzz
andauthored
Sync eng/common directory with azure-sdk-tools for PR 5427 (Azure#20006)
Co-authored-by: archerzz <archerzz@gmail.com>
1 parent 4f7ac15 commit ea7cedd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/common/scripts/Cadl-Project-Sync.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ function GetGitRemoteValue([string]$repo) {
4444
$gitRemotes = (git remote -v)
4545
foreach ($remote in $gitRemotes) {
4646
if ($remote.StartsWith("origin")) {
47-
if ($remote -match 'https://github.com/\S+[\.git]') {
47+
if ($remote -match 'https://github.com/\S+') {
4848
$result = "https://github.com/$repo.git"
4949
break
50-
} elseif ($remote -match "git@github.com:\S+[\.git]"){
50+
} elseif ($remote -match "git@github.com:\S+"){
5151
$result = "git@github.com:$repo.git"
5252
break
5353
} else {

0 commit comments

Comments
 (0)