From a004e8ebc089d90612e1166d477f7b52aa27adce Mon Sep 17 00:00:00 2001 From: Sean Fausett Date: Fri, 17 May 2024 11:23:31 +1200 Subject: [PATCH 1/2] Disable rogue command echo Also removes redundant condition. --- src/GitInfo/build/GitInfo.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitInfo/build/GitInfo.targets b/src/GitInfo/build/GitInfo.targets index 0f82e3c..185e2af 100644 --- a/src/GitInfo/build/GitInfo.targets +++ b/src/GitInfo/build/GitInfo.targets @@ -420,7 +420,7 @@ Condition="'$(GitRoot)' != '' and '$(GitRepositoryUrl)' == ''"> Date: Fri, 17 May 2024 11:25:54 +1200 Subject: [PATCH 2/2] Reorder command condition Better for code search. --- src/GitInfo/build/GitInfo.targets | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/GitInfo/build/GitInfo.targets b/src/GitInfo/build/GitInfo.targets index 185e2af..009aa39 100644 --- a/src/GitInfo/build/GitInfo.targets +++ b/src/GitInfo/build/GitInfo.targets @@ -280,8 +280,8 @@ <_IsGitFile>$([System.IO.File]::Exists('$(GitDir)')) - $(_GitIsWorkTree.Trim()) - -