From 611a633ba4e11215a23d8b405a537346b10d9657 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 16 Dec 2016 23:48:27 +0100 Subject: [PATCH] fix powershell dco check Signed-off-by: Sebastiaan van Stijn --- hack/make.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/make.ps1 b/hack/make.ps1 index c085902ab6..335619d174 100644 --- a/hack/make.ps1 +++ b/hack/make.ps1 @@ -184,7 +184,7 @@ Function Validate-DCO($headCommit, $upstreamCommit) { $usernameRegex='[a-zA-Z0-9][a-zA-Z0-9-]+' $dcoPrefix="Signed-off-by:" - $dcoRegex="^(Docker-DCO-1.1-)?$dcoPrefix ([^<]+) <([^<>@]+@[^<>]+)>( \\(github: ($githubUsernameRegex)\\))?$" + $dcoRegex="^(Docker-DCO-1.1-)?$dcoPrefix ([^<]+) <([^<>@]+@[^<>]+)>( \\(github: ($usernameRegex)\\))?$" $counts = Invoke-Expression "git diff --numstat $upstreamCommit...$headCommit" if ($LASTEXITCODE -ne 0) { Throw "Failed git diff --numstat" }