From e6f84a65d1a883503f76e20cbf0aaeb1f22e07ba Mon Sep 17 00:00:00 2001 From: DouPache Date: Wed, 1 Nov 2023 21:11:38 +0800 Subject: [PATCH] more echo rev --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 24545ddca..62c032d8a 100644 --- a/Makefile +++ b/Makefile @@ -240,9 +240,11 @@ lint: $(GOLANGCI_LINT_BIN) @echo "running golangci-lint" @git show-ref @git symbolic-ref -q HEAD && REV="origin/HEAD"; \ + echo "REV1 is $${REV}" ; \ git rev-parse $${REV} || REV="HEAD^"; \ + echo "REV2 is $${REV}" ; \ headSHA=$$(git rev-parse --short=12 $${REV}) ; \ - echo "REV is $${REV}" ; \ + echo "REV3 is $${REV}" ; \ echo "checking against commit sha $${headSHA}" ; \ "${GOLANGCI_LINT_BIN}" run --new-from-rev=$${headSHA}