File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 49
49
$PsesRepositoryPath = (Resolve-Path " $PSExtensionRepositoryPath /../PowerShellEditorServices" )
50
50
)
51
51
52
+ $PSExtensionRepositoryPath = $PSCmdlet.GetUnresolvedProviderPathFromPSPath ($PSExtensionRepositoryPath )
53
+ $PsesRepositoryPath = $PSCmdlet.GetUnresolvedProviderPathFromPSPath ($PsesRepositoryPath )
54
+
52
55
function UpdateChangelogFile
53
56
{
54
57
param (
@@ -152,10 +155,11 @@ Write-Host "PSES CHANGELOG:`n`n$psesChangelogSection`n`n"
152
155
$cloneLocation = Join-Path ([System.IO.Path ]::GetTempPath()) " ${psesRepoName} _changelogupdate"
153
156
154
157
$cloneParams = @ {
155
- OriginRemote = " https://github.com/$TargetFork /$psesRepoName "
158
+ OriginRemote = " https://github.com/$FromFork /$psesRepoName "
156
159
Destination = $cloneLocation
157
160
CheckoutBranch = $branchName
158
161
Clobber = $true
162
+ Remotes = @ { ' upstream' = " https://github.com/$TargetFork /$vscodeRepoName " }
159
163
}
160
164
Copy-GitRepository @cloneParams - Verbose:$VerbosePreference
161
165
@@ -181,10 +185,12 @@ Write-Host "vscode-PowerShell CHANGELOG:`n`n$psextChangelogSection`n`n"
181
185
$cloneLocation = Join-Path ([System.IO.Path ]::GetTempPath()) " ${vscodeRepoName} _changelogupdate"
182
186
183
187
$cloneParams = @ {
184
- OriginRemote = " https://github.com/$TargetFork /$vscodeRepoName "
188
+ OriginRemote = " https://github.com/$FromFork /$vscodeRepoName "
185
189
Destination = $cloneLocation
186
190
CheckoutBranch = $branchName
187
191
Clobber = $true
192
+ Remotes = @ { ' upstream' = " https://github.com/$TargetFork /$vscodeRepoName " }
193
+ PullUpstream = $true
188
194
}
189
195
Copy-GitRepository @cloneParams - Verbose:$VerbosePreference
190
196
You can’t perform that action at this time.
0 commit comments