Commit 81bcdc2
committed
test-tool: add a
8d1a744 (setup.c: create `safe.bareRepository`, 2022-07-14)
introduced the `safe.bareRepository` config setting that can reject
implicit bare repository discovery. It defaults to `all` for now, but
the commit message already describes the social engineering attack that
motivates changing that default to `explicit` at some point.
When that day comes, any `test-tool -C <bare-repo>` invocation will
trigger implicit discovery and be refused. Add a `--git-dir=<path>`
option that works the same way `git --git-dir=<path>` does: it calls
`setenv(GIT_DIR_ENVIRONMENT, ...)` before dispatching to the subcommand,
bypassing repository discovery entirely.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>--git-dir option1 parent 1f8a88e commit 81bcdc2
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| 115 | + | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| 130 | + | |
| 131 | + | |
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
| |||
0 commit comments