diff --git a/CHANGELOG.md b/CHANGELOG.md index b0d7cb4..ab47af5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/source/Public/Invoke-Git.ps1 b/source/Public/Invoke-Git.ps1 index 6ea5833..b01a75a 100644 --- a/source/Public/Invoke-Git.ps1 +++ b/source/Public/Invoke-Git.ps1 @@ -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 diff --git a/source/Public/Publish-WikiContent.ps1 b/source/Public/Publish-WikiContent.ps1 index fb6f0e9..8c83028 100644 --- a/source/Public/Publish-WikiContent.ps1 +++ b/source/Public/Publish-WikiContent.ps1 @@ -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 `