Skip to content

Commit 1f99008

Browse files
committed
Allow git commands in Vagrantfile
Due to a git CVE, we need to mark /vagrant as a "safe" directory otherwise building containerd inside Vagrant fails with git command failures. Signed-off-by: Phil Estes <[email protected]> (cherry picked from commit 06bdfeb)
1 parent 3ae6984 commit 1f99008

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Vagrantfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ EOF
9191
GOPATH=\\$HOME/go
9292
PATH=\\$GOPATH/bin:\\$PATH
9393
export GOPATH PATH
94+
git config --global --add safe.directory /vagrant
9495
EOF
9596
source /etc/profile.d/sh.local
9697
SHELL

0 commit comments

Comments
 (0)