Repository navigation
Commit 811e03e
fix(server): keep repository identity for roots whose name ends in a space
git rev-parse output was trimmed, dropping a trailing space that is part
of the repository root's folder name, so the follow-up git -C call ran
against a missing folder and the identity resolved to null. Strip only
git's line terminator, for both the work-tree and bare-repository paths.
Fixes #35747
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent e9dac3d commit 811e03e
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
227 | | - | |
228 | | - | |
229 | | - | |
| 228 | + | |
230 | 229 | | |
231 | 230 | | |
232 | 231 | | |
| |||
0 commit comments