Commit 9320b4e
committed
t5503: avoid discovering a bare repository
The test case "fetch specific OID with tag following" creates a bare
repository and wants to operate on it by changing the working directory
and relying on Git's implicit discovery of the bare repository.
Once the `safe.bareRepository` default is changed, this is no longer
an option.
So let's adjust the commands to specify the bare repository explicitly,
via `--git-dir`, and avoid changing the working directory. As a bonus,
the result is arguably more readable than the original code.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent a54a7d7 commit 9320b4e
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 171 | + | |
| 172 | + | |
175 | 173 | | |
176 | | - | |
177 | | - | |
| 174 | + | |
| 175 | + | |
178 | 176 | | |
179 | | - | |
180 | | - | |
| 177 | + | |
181 | 178 | | |
182 | 179 | | |
183 | 180 | | |
0 commit comments