From a8bcf75025123ff37a5c188843f3040971671edd Mon Sep 17 00:00:00 2001 From: bensonhome <410554565@qq.com> Date: Thu, 24 Aug 2023 09:35:09 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=E4=BF=AE=E5=A4=8D=E6=8C=82=E8=BD=BD?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81=E7=9B=AE=E5=BD=95owner=E4=B8=8D?= =?UTF-8?q?=E6=98=AFroot=E6=97=B6=EF=BC=8C=E5=AF=BC=E8=87=B4git=20blame?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=20-=20fatal:=20unsafe=20repository=20('/xxx/?= =?UTF-8?q?xxx'=20is=20owned=20by=20someone=20else)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/Dockerfile b/client/Dockerfile index 936796ad5..3102f57bf 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -22,4 +22,7 @@ RUN pip3 install --no-cache-dir -U pip \ COPY . . +# 避免挂载的代码目录owner不是root时,导致git blame异常 - fatal: unsafe repository ('/xxx/xxx' is owned by someone else) +RUN git config --global --add safe.directory '*' + CMD [ "python3", "codepuppy.py", "localscan"]