Skip to content

Commit 7da482e

Browse files
committed
Add v4 note about change-permissions and exechook
This is sort of a regression in v4 vs, v3, but ths use case is pretty niche, I think.
1 parent 4ccf063 commit 7da482e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

v3-to-v4.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,15 @@ specified.
104104

105105
The old `--change-permissions` flag was poorly designed and not able to express
106106
the real intentions (e.g. "allow group write" does not mean "set everything to
107-
0775"). The new `--group-write` flag should cover what people ACTUALLY are
108-
trying to do. The `--change-permissions` flag is no longer supported.
107+
0775"). The new `--group-write` flag should cover what most people ACTUALLY
108+
are trying to do.
109+
110+
There is one case where `--change-permissions` was useful and `--group-write`
111+
is not - making non-executable files in the repo executable so they can be run
112+
as exechooks. The proper solution here is to make the file executable in the
113+
repo, rather than changing it after checkout.
114+
115+
The `--change-permissions` flag is no longer supported.
109116

110117
### SSH: `--ssh`
111118

0 commit comments

Comments
 (0)