Skip to content

Commit c9cb4e5

Browse files
Robert Holtrjmholt
Robert Holt
authored andcommitted
Fix upstream issues
1 parent 6a676e4 commit c9cb4e5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tools/changelog/updateChangelog.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ param(
4949
$PsesRepositoryPath = (Resolve-Path "$PSExtensionRepositoryPath/../PowerShellEditorServices")
5050
)
5151

52+
$PSExtensionRepositoryPath = $PSCmdlet.GetUnresolvedProviderPathFromPSPath($PSExtensionRepositoryPath)
53+
$PsesRepositoryPath = $PSCmdlet.GetUnresolvedProviderPathFromPSPath($PsesRepositoryPath)
54+
5255
function UpdateChangelogFile
5356
{
5457
param(
@@ -152,10 +155,11 @@ Write-Host "PSES CHANGELOG:`n`n$psesChangelogSection`n`n"
152155
$cloneLocation = Join-Path ([System.IO.Path]::GetTempPath()) "${psesRepoName}_changelogupdate"
153156

154157
$cloneParams = @{
155-
OriginRemote = "https://github.com/$TargetFork/$psesRepoName"
158+
OriginRemote = "https://github.com/$FromFork/$psesRepoName"
156159
Destination = $cloneLocation
157160
CheckoutBranch = $branchName
158161
Clobber = $true
162+
Remotes = @{ 'upstream' = "https://github.com/$TargetFork/$vscodeRepoName" }
159163
}
160164
Copy-GitRepository @cloneParams -Verbose:$VerbosePreference
161165

@@ -181,10 +185,12 @@ Write-Host "vscode-PowerShell CHANGELOG:`n`n$psextChangelogSection`n`n"
181185
$cloneLocation = Join-Path ([System.IO.Path]::GetTempPath()) "${vscodeRepoName}_changelogupdate"
182186

183187
$cloneParams = @{
184-
OriginRemote = "https://github.com/$TargetFork/$vscodeRepoName"
188+
OriginRemote = "https://github.com/$FromFork/$vscodeRepoName"
185189
Destination = $cloneLocation
186190
CheckoutBranch = $branchName
187191
Clobber = $true
192+
Remotes = @{ 'upstream' = "https://github.com/$TargetFork/$vscodeRepoName" }
193+
PullUpstream = $true
188194
}
189195
Copy-GitRepository @cloneParams -Verbose:$VerbosePreference
190196

0 commit comments

Comments
 (0)