Skip to content
Snippets Groups Projects
Commit 4f408ecf authored by Patrick Baudin's avatar Patrick Baudin
Browse files

A fixe for Git versions < 2.22

parent 353f065a
No related branches found
No related tags found
No related merge requests found
...@@ -230,7 +230,7 @@ $(info $(HEADER.FILE_LIST)) ...@@ -230,7 +230,7 @@ $(info $(HEADER.FILE_LIST))
endif # $(HEADER_DIFF) endif # $(HEADER_DIFF)
#### rules for make <headers-target>.before-push #### rules for make <headers-target>.before-push
## looks at files modified from origin/$(git branch --show-current) and checks that there is no staged nor unstaged files ## looks at files modified from origin/$(git rev-parse --abbrev-ref HEAD) and checks that there is no staged nor unstaged files
PHONY: HDRCK.checked-unmodified-ok PHONY: HDRCK.checked-unmodified-ok
HDRCK.checked-unmodified-ok: HDRCK.checked-unmodified-ok:
...@@ -242,7 +242,7 @@ HDRCK.checked-unmodified-ok: ...@@ -242,7 +242,7 @@ HDRCK.checked-unmodified-ok:
exit 1; \ exit 1; \
fi; fi;
$(eval $(call HDRCK.file-list-filter-with-git-diff,before-push,--cached origin/$(shell git branch --show-current),HDRCK.checked-unmodified-ok)) $(eval $(call HDRCK.file-list-filter-with-git-diff,before-push,--cached origin/$(shell git rev-parse --abbrev-ref HEAD),HDRCK.checked-unmodified-ok))
#### rules for make <headers-target>.unstaged #### rules for make <headers-target>.unstaged
## looks at unstaged files ## looks at unstaged files
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
# - make <lint-target>.previous-commit # - make <lint-target>.previous-commit
# looks at files of the last commit and checks that there is no staged nor unstaged files # looks at files of the last commit and checks that there is no staged nor unstaged files
# - make <lint-target>.before-push: # - make <lint-target>.before-push:
# looks at files modified from origin/$(git branch --show-current) and checks that there is no staged nor unstaged files # looks at files modified from origin/$(git rev-parse --abbrev-ref HEAD) and checks that there is no staged nor unstaged files
# make clean-lint (removing linting targets) includes # make clean-lint (removing linting targets) includes
# - make clean-utf8 # - make clean-utf8
...@@ -230,7 +230,7 @@ $(info $(LINT.FILE_LIST)) ...@@ -230,7 +230,7 @@ $(info $(LINT.FILE_LIST))
endif endif
#### rules for make <lint-target>.before-push #### rules for make <lint-target>.before-push
## looks at files modified from origin/$(git branch --show-current) and checks that there is no staged nor unstaged files ## looks at files modified from origin/$(git rev-parse --abbrev-ref HEAD) and checks that there is no staged nor unstaged files
PHONY: LINT.checked-unmodified-ok PHONY: LINT.checked-unmodified-ok
LINT.checked-unmodified-ok: LINT.checked-unmodified-ok:
...@@ -242,7 +242,7 @@ LINT.checked-unmodified-ok: ...@@ -242,7 +242,7 @@ LINT.checked-unmodified-ok:
exit 1; \ exit 1; \
fi; fi;
$(eval $(call LINT.file-list-filter-with-git-diff,before-push,--cached origin/$(shell git branch --show-current),LINT.checked-unmodified-ok)) $(eval $(call LINT.file-list-filter-with-git-diff,before-push,--cached origin/$(shell git rev-parse --abbrev-ref HEAD),LINT.checked-unmodified-ok))
#### rules for make <lint-target>.unstaged #### rules for make <lint-target>.unstaged
## looks at unstaged files ## looks at unstaged files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment