Skip to content

Commit

Permalink
Fix Invoke-Git and Publish-WikiContent (#89)
Browse files Browse the repository at this point in the history
- `Invoke-Git`
  - Calls `git` so it works on both Windows and Linux
- `Publish-WikiContent`
  - Remove a unnecessary `Set-Location` so it is possible to remove the 
    temporary folder.
  • Loading branch information
johlju authored Jul 6, 2021
1 parent e97551a commit d79b424
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `Invoke-Git`
- Set `$TimeOut` to Milliseconds
Fixes [Issue 84](https://github.com/dsccommunity/DscResource.DocGenerator/issues/84)
- Calls `git` so it works on both Windows and Linux.
- `Publish-WikiContent`
- Remove a unnecessary `Set-Location` so it is possible to remove the
temporary folder.

## [0.8.3] - 2021-04-10

Expand Down
2 changes: 1 addition & 1 deletion source/Public/Invoke-Git.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function Invoke-Git
$process = New-Object -TypeName System.Diagnostics.Process
$process.StartInfo.Arguments = $Arguments
$process.StartInfo.CreateNoWindow = $true
$process.StartInfo.FileName = 'git.exe'
$process.StartInfo.FileName = 'git'
$process.StartInfo.RedirectStandardOutput = $true
$process.StartInfo.RedirectStandardError = $true
$process.StartInfo.UseShellExecute = $false
Expand Down
2 changes: 0 additions & 2 deletions source/Public/Publish-WikiContent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ function Publish-WikiContent
New-WikiSidebar -ModuleName $ModuleName -Path $tempPath
New-WikiFooter -Path $tempPath

Set-Location -Path $tempPath

Write-Verbose -Message $script:localizedData.ConfigLocalGitMessage

$null = Invoke-Git -WorkingDirectory $tempPath.FullName `
Expand Down

0 comments on commit d79b424

Please sign in to comment.