Skip to content

Commit

Permalink
🐛修复挂载的代码目录owner不是root时,导致git blame异常 - fatal: unsafe repository ('/xx…
Browse files Browse the repository at this point in the history
…x/xxx' is owned by someone else)
  • Loading branch information
bensonhome committed Aug 24, 2023
1 parent ba452c3 commit a8bcf75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit a8bcf75

Please sign in to comment.