Skip to content

Commit 789cd7d

Browse files
committed
fixing git config for cloning repos
1 parent 538d5bc commit 789cd7d

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

.devcontainer/All/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
"xaver.clang-format"
3737
]
3838
}
39-
}
39+
},
4040
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers
4141
// "postAttachCommand": "/usr/local/git-pull-repos.sh"
4242
// Use 'forwardPorts' to make a list of ports inside the container available locally.
4343
// "forwardPorts": [],
44-
// Use 'postCreateCommand' to run commands after the container is created.
45-
// "postCreateCommand": "terraform --version",
44+
// This is needed to allow cloning repositories like the STM32 hal driver ones
45+
"postCreateCommand": "git config --global safe.directory '*'"
4646
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root.
4747
// ,"remoteUser": "vscode"
4848
}

.devcontainer/AzureRTOS/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
"xaver.clang-format"
3737
]
3838
}
39-
}
39+
},
4040
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers
4141
// "postAttachCommand": "/usr/local/git-pull-repos.sh"
4242
// Use 'forwardPorts' to make a list of ports inside the container available locally.
4343
// "forwardPorts": [],
44-
// Use 'postCreateCommand' to run commands after the container is created.
45-
// "postCreateCommand": "terraform --version",
44+
// This is needed to allow cloning repositories like the STM32 hal driver ones
45+
"postCreateCommand": "git config --global safe.directory '*'"
4646
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root.
4747
// ,"remoteUser": "vscode"
4848
}

.devcontainer/ChibiOS/devcontainer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@
3636
"xaver.clang-format"
3737
]
3838
}
39-
}
39+
},
4040
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers
4141
// "postAttachCommand": "/usr/local/git-pull-repos.sh"
4242
// Use 'forwardPorts' to make a list of ports inside the container available locally.
43-
// "forwardPorts": [],
43+
// "forwardPorts": [],
4444
// Use 'postCreateCommand' to run commands after the container is created.
45-
// "postCreateCommand": "terraform --version",
45+
// This is needed to allow cloning repositories like the STM32 hal driver ones
46+
"postCreateCommand": "git config --global safe.directory '*'"
4647
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root.
4748
// ,"remoteUser": "vscode"
4849
}

.devcontainer/ESP32/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
"xaver.clang-format"
3737
]
3838
}
39-
}
39+
},
4040
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers
4141
// "postAttachCommand": "/usr/local/git-pull-repos.sh"
4242
// Use 'forwardPorts' to make a list of ports inside the container available locally.
4343
// "forwardPorts": [],
44-
// Use 'postCreateCommand' to run commands after the container is created.
45-
// "postCreateCommand": "terraform --version",
44+
// This is needed to allow cloning repositories like the STM32 hal driver ones
45+
"postCreateCommand": "git config --global safe.directory '*'"
4646
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root.
4747
// ,"remoteUser": "vscode"
4848
}

.devcontainer/FreeRTOS-NXP/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
"xaver.clang-format"
3737
]
3838
}
39-
}
39+
},
4040
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers
4141
// "postAttachCommand": "/usr/local/git-pull-repos.sh"
4242
// Use 'forwardPorts' to make a list of ports inside the container available locally.
4343
// "forwardPorts": [],
44-
// Use 'postCreateCommand' to run commands after the container is created.
45-
// "postCreateCommand": "terraform --version",
44+
// This is needed to allow cloning repositories like the STM32 hal driver ones
45+
"postCreateCommand": "git config --global safe.directory '*'"
4646
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root.
4747
// ,"remoteUser": "vscode"
4848
}

.devcontainer/TI/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
"xaver.clang-format"
3737
]
3838
}
39-
}
39+
},
4040
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers
4141
// "postAttachCommand": "/usr/local/git-pull-repos.sh"
4242
// Use 'forwardPorts' to make a list of ports inside the container available locally.
4343
// "forwardPorts": [],
44-
// Use 'postCreateCommand' to run commands after the container is created.
45-
// "postCreateCommand": "terraform --version",
44+
// This is needed to allow cloning repositories like the STM32 hal driver ones
45+
"postCreateCommand": "git config --global safe.directory '*'"
4646
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root.
4747
// ,"remoteUser": "vscode"
4848
}

0 commit comments

Comments
 (0)