From 946fa6375cff9de8dcbab6cb963f117f432b119d Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Tue, 15 Mar 2016 10:59:16 -0600 Subject: [PATCH] fix(test-style): set git repo path --- scripts/validate-go.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/validate-go.sh b/scripts/validate-go.sh index 264ff3e89..9aad0bdf2 100755 --- a/scripts/validate-go.sh +++ b/scripts/validate-go.sh @@ -22,10 +22,12 @@ readonly red=$(tput bold; tput setaf 1) readonly green=$(tput bold; tput setaf 2) readonly yellow=$(tput bold; tput setaf 3) +readonly REPO=github.com/kubernetes/deployment-manager + exit_code=0 find_go_files() { - git ls-files '*.go' + git -C "${GOPATH}/src/${REPO}" ls-files '*.go' } echo "==> Running golint..."