Commit 70bd3e3
committed
t2400: explicitly specify bare repo for
To prepare for `safe.bareRepository` defaulting to `explicit` (see
8d1a744), specify the gitdir specifically in bare-repo `git
worktree add` invocations via `--git-dir=.` so Git does not rely on
implicit bare repository discovery.
While at it, also avoid unnecessary subshells and `cd`ing. This
simplifies the logic in a rather pleasant way.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>git worktree add
1 parent f3d66fa commit 70bd3e3
1 file changed
+7
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 174 | + | |
| 175 | + | |
179 | 176 | | |
180 | 177 | | |
181 | 178 | | |
| |||
186 | 183 | | |
187 | 184 | | |
188 | 185 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
198 | 191 | | |
199 | 192 | | |
200 | 193 | | |
| |||
0 commit comments