fix: add safe.directory for git-sync init container
This commit is contained in:
@@ -29,6 +29,7 @@ spec:
|
|||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
export GIT_SSH_COMMAND="ssh -i /root/.ssh/id_ed25519 -o StrictHostKeyChecking=no"
|
export GIT_SSH_COMMAND="ssh -i /root/.ssh/id_ed25519 -o StrictHostKeyChecking=no"
|
||||||
|
git config --global --add safe.directory /vault
|
||||||
if [ -d /vault/.git ]; then
|
if [ -d /vault/.git ]; then
|
||||||
cd /vault && git pull origin main || true
|
cd /vault && git pull origin main || true
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user