From 44a6b6331630d301a4c97719b108846e5d6173cf Mon Sep 17 00:00:00 2001 From: Danny Althoff Date: Sun, 12 Mar 2017 18:43:05 +0100 Subject: [PATCH] cmd/hook: fixed typo (#4280) --- cmd/hook.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/hook.go b/cmd/hook.go index d395eb6a..c8448d5f 100644 --- a/cmd/hook.go +++ b/cmd/hook.go @@ -101,7 +101,7 @@ func runHookPreReceive(c *cli.Context) error { } // Whitelist users can bypass require pull request check - bypassRequirePullReuqest := false + bypassRequirePullRequest := false // Check if user is in whitelist when enabled userID := com.StrTo(os.Getenv(http.ENV_AUTH_USER_ID)).MustInt64() @@ -110,11 +110,11 @@ func runHookPreReceive(c *cli.Context) error { fail(fmt.Sprintf("Branch '%s' is protected and you are not in the push whitelist", branchName), "") } - bypassRequirePullReuqest = true + bypassRequirePullRequest = true } // Check if branch allows direct push - if !bypassRequirePullReuqest && protectBranch.RequirePullRequest { + if !bypassRequirePullRequest && protectBranch.RequirePullRequest { fail(fmt.Sprintf("Branch '%s' is protected and commits must be merged through pull request", branchName), "") }