From 0d1993ef537c13af4a90ddcc7a9285476a2db2de Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 6 Oct 2023 10:51:03 +0100 Subject: [PATCH] Fix win_git module for hidden folders --- library/win_git.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 `