diff --git a/library/win_git.ps1 b/library/win_git.ps1 index 7a57bba..c34c1b1 100644 --- a/library/win_git.ps1 +++ b/library/win_git.ps1 @@ -223,7 +223,7 @@ if ($recursive) { # Ensure the repository has the correct owner $userName = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name $idRef = [System.Security.Principal.NTAccount]::new($userName) -Get-Item $dest | foreach { ` +Get-Item -Force $dest | foreach { ` $_ ; $_ | Get-ChildItem -Force -Recurse ` } | foreach { ` $acl = $_ | Get-Acl; $acl.SetOwner($idRef); $_ | Set-Acl -AclObject $acl `