diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-05-27 09:32:50 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-27 09:32:50 -0700 |
commit | c826bb350204971bc1e893b71c0ae572e7ce4cc6 (patch) | |
tree | 27a8991ace01aefd43df12dd1e5b6773fce1675f /tools/go_branch.sh | |
parent | e028714a0dd390b2321c4beeac62c5b2904cd917 (diff) | |
parent | 8437ef752d3c8e90327edad0164f3e4d003821c8 (diff) |
Merge pull request #2748 from amscanne:go_branch
PiperOrigin-RevId: 313404235
Diffstat (limited to 'tools/go_branch.sh')
-rwxr-xr-x | tools/go_branch.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/go_branch.sh b/tools/go_branch.sh index e568a0a76..093de89b4 100755 --- a/tools/go_branch.sh +++ b/tools/go_branch.sh @@ -88,6 +88,12 @@ EOF # because they may correspond to unused templates, etc. cp "${repo_orig}"/runsc/*.go runsc/ +# Normalize all permissions. The way bazel constructs the :gopath tree may leave +# some strange permissions on files. We don't have anything in this tree that +# should be execution, only the Go source files, README.md, and ${othersrc}. +find . -type f -exec chmod 0644 {} \; +find . -type d -exec chmod 0755 {} \; + # Update the current working set and commit. git add . && git commit -m "Merge ${head} (automated)" |