Skip to content

Commit

Permalink
[YUNIKORN-2098] Change go lint SHA detection
Browse files Browse the repository at this point in the history
  • Loading branch information
doupache committed Nov 25, 2023
1 parent fb47a79 commit 13cfd67
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,7 @@ lint: $(GOLANGCI_LINT_BIN)
@echo "running golangci-lint"
@git show-ref
@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 "checking against commit sha $${headSHA}" ; \
"${GOLANGCI_LINT_BIN}" run --new-from-rev=$${headSHA}
Expand Down

0 comments on commit 13cfd67

Please sign in to comment.