Skip to content

Commit

Permalink
[YUNIKORN-2098] debug git ref
Browse files Browse the repository at this point in the history
  • Loading branch information
doupache committed Nov 25, 2023
1 parent 70b3a0b commit f412476
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ $(SPARK_SUBMIT_CMD):
lint: $(GOLANGCI_LINT_BIN)
@echo "running golangci-lint"
@git show-ref
@git symbolic-ref -q HEAD && REV="origin/HEAD" || REV="HEAD^" ; \
@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 "checking against commit sha $${headSHA}" ; \
"${GOLANGCI_LINT_BIN}" run --new-from-rev=$${headSHA}
Expand Down

0 comments on commit f412476

Please sign in to comment.