From dbd217e4f6d689dc7219680a022a5b98d9d81b6a Mon Sep 17 00:00:00 2001 From: Muhammad Danish Date: Sun, 23 Jun 2024 16:21:59 +0500 Subject: [PATCH] Quote UserName before sending to Invoke-GitConfig --- resources/GitDsc/GitDsc.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/GitDsc/GitDsc.psm1 b/resources/GitDsc/GitDsc.psm1 index 1245650c..ff5a5acd 100644 --- a/resources/GitDsc/GitDsc.psm1 +++ b/resources/GitDsc/GitDsc.psm1 @@ -243,7 +243,7 @@ class GitConfigUserName if ($this.Ensure -eq [Ensure]::Present) { - $configArgs = ConstructGitConfigUserArguments -Arguments "user.name $($this.UserName)" -ConfigLocation $this.ConfigLocation + $configArgs = ConstructGitConfigUserArguments -Arguments "user.name '$($this.UserName)'" -ConfigLocation $this.ConfigLocation } else {