Skip to content

Commit

Permalink
more echo rev
Browse files Browse the repository at this point in the history
  • Loading branch information
doupache committed Nov 1, 2023
1 parent aba9a4b commit e6f84a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit e6f84a6

Please sign in to comment.