Skip to content

Commit

Permalink
Set git branch protection for vscode (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs committed Jun 17, 2023
1 parent 8584e65 commit cf7ce77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"git.branchProtection": ["main"],
"git.branchProtectionPrompt": "alwaysCommitToNewBranch"
}
4 changes: 0 additions & 4 deletions docker
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,6 @@ function fix_volume_arg() {
local container_volume_source="${container_volume%%":"*}"
local container_volume_destination="${container_volume#*":"}"

# TODO: Check if the container_volume_source was mounted as read-only, and force
# the volume_arg to be read-only as well to avoid gaining write access to a file
# in the host which was not allowed to the parent container.

if [[ -z "${fixed_source}" ]]; then
if [[ "${source}" == "${container_volume_destination}" ]]; then
fixed_source="${container_volume_source}"
Expand Down

0 comments on commit cf7ce77

Please sign in to comment.