From 30a6d142d691363fad9056a005a58fa7080d9636 Mon Sep 17 00:00:00 2001 From: James Clark Date: Mon, 21 Sep 2020 08:20:14 -0400 Subject: [PATCH] remove username and password from repository URL --- src/GitInfo/build/GitInfo.targets | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GitInfo/build/GitInfo.targets b/src/GitInfo/build/GitInfo.targets index 9bf8b1f..5e280a8 100644 --- a/src/GitInfo/build/GitInfo.targets +++ b/src/GitInfo/build/GitInfo.targets @@ -377,6 +377,11 @@ + + + $([System.Text.RegularExpressions.Regex]::Replace($(GitRepositoryUrl), "://[^/]*@", "://")) + +