mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
fix: Fixed git fatal error in Dockerfile (#372)
This commit is contained in:
parent
cee7608f4b
commit
c3f8dd40e6
2 changed files with 9 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
schemaVersion: '2.0.0'
|
schemaVersion: '2.0.0'
|
||||||
commandTests:
|
commandTests:
|
||||||
|
- name: "git"
|
||||||
|
command: "git"
|
||||||
|
args: ["--version"]
|
||||||
|
expectedOutput: ["^git version 2\\.[0-9]+\\.[0-9]+\\n$"]
|
||||||
|
|
||||||
- name: "pre-commit"
|
- name: "pre-commit"
|
||||||
command: "pre-commit"
|
command: "pre-commit"
|
||||||
args: ["-V"]
|
args: ["-V"]
|
||||||
|
|
|
||||||
|
|
@ -182,7 +182,10 @@ RUN if [ "$(grep -o '^terraform-docs SKIPPED$' /usr/bin/tools_versions_info)" =
|
||||||
; fi && \
|
; fi && \
|
||||||
if [ "$(grep -o '^infracost SKIPPED$' /usr/bin/tools_versions_info)" = "" ]; then \
|
if [ "$(grep -o '^infracost SKIPPED$' /usr/bin/tools_versions_info)" = "" ]; then \
|
||||||
apk add --no-cache jq=~1 \
|
apk add --no-cache jq=~1 \
|
||||||
; fi
|
; fi && \
|
||||||
|
# Fix git runtime fatal:
|
||||||
|
# unsafe repository ('/lint' is owned by someone else)
|
||||||
|
git config --global --add safe.directory /lint
|
||||||
|
|
||||||
ENV PRE_COMMIT_COLOR=${PRE_COMMIT_COLOR:-always}
|
ENV PRE_COMMIT_COLOR=${PRE_COMMIT_COLOR:-always}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue