Skip to content

Commit 73b9014

Browse files
committed
Add safe.directory for git config
otherwise colcon cache errors out because of issues with git due to complex user mapping magic that vscode does with devcontainers https://stackoverflow.com/questions/72978485/git-submodule-update-failed-with-fatal-detected-dubious-ownership-in-repositor also used by Moveit2: moveit/moveit2#1994 https://github.blog/2022-04-12-git-security-vulnerability-announced/
1 parent d8f6673 commit 73b9014

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.devcontainer/on-create-command.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ env
99
cd $OVERLAY_WS
1010
. $UNDERLAY_WS/install/setup.sh
1111

12+
git config --global --add safe.directory "*"
1213
colcon cache lock
1314

1415
colcon build \

0 commit comments

Comments
 (0)