Skip to content

Commit

Permalink
fixing git config for cloning repos
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellerbach committed Dec 6, 2024
1 parent 538d5bc commit 789cd7d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/All/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
"xaver.clang-format"
]
}
}
},
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers
// "postAttachCommand": "/usr/local/git-pull-repos.sh"
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "terraform --version",
// This is needed to allow cloning repositories like the STM32 hal driver ones
"postCreateCommand": "git config --global safe.directory '*'"
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root.
// ,"remoteUser": "vscode"
}
6 changes: 3 additions & 3 deletions .devcontainer/AzureRTOS/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
"xaver.clang-format"
]
}
}
},
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers
// "postAttachCommand": "/usr/local/git-pull-repos.sh"
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "terraform --version",
// This is needed to allow cloning repositories like the STM32 hal driver ones
"postCreateCommand": "git config --global safe.directory '*'"
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root.
// ,"remoteUser": "vscode"
}
7 changes: 4 additions & 3 deletions .devcontainer/ChibiOS/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@
"xaver.clang-format"
]
}
}
},
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers
// "postAttachCommand": "/usr/local/git-pull-repos.sh"
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "terraform --version",
// This is needed to allow cloning repositories like the STM32 hal driver ones
"postCreateCommand": "git config --global safe.directory '*'"
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root.
// ,"remoteUser": "vscode"
}
6 changes: 3 additions & 3 deletions .devcontainer/ESP32/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
"xaver.clang-format"
]
}
}
},
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers
// "postAttachCommand": "/usr/local/git-pull-repos.sh"
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "terraform --version",
// This is needed to allow cloning repositories like the STM32 hal driver ones
"postCreateCommand": "git config --global safe.directory '*'"
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root.
// ,"remoteUser": "vscode"
}
6 changes: 3 additions & 3 deletions .devcontainer/FreeRTOS-NXP/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
"xaver.clang-format"
]
}
}
},
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers
// "postAttachCommand": "/usr/local/git-pull-repos.sh"
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "terraform --version",
// This is needed to allow cloning repositories like the STM32 hal driver ones
"postCreateCommand": "git config --global safe.directory '*'"
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root.
// ,"remoteUser": "vscode"
}
6 changes: 3 additions & 3 deletions .devcontainer/TI/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
"xaver.clang-format"
]
}
}
},
// You can pull all the repos with the latest changes, this is only valid if you are using the ./sources/Dockerfile.All containers
// "postAttachCommand": "/usr/local/git-pull-repos.sh"
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "terraform --version",
// This is needed to allow cloning repositories like the STM32 hal driver ones
"postCreateCommand": "git config --global safe.directory '*'"
// Uncomment to connect as a non-root user. See https: //aka.ms/vscode-remote/containers/non-root.
// ,"remoteUser": "vscode"
}

0 comments on commit 789cd7d

Please sign in to comment.