Commit cb42d4a
committed
cmd/git(fix[GitRemoteManager.ls]): Handle URLs with spaces
why: The regex pattern used \S+ for URLs which failed to match
paths containing spaces (e.g., /tmp/foo bar), causing those
remotes to be silently dropped from the listing.
what:
- Change URL pattern from \S+ to .+? (non-greedy any char)
- Add line anchors (^ and $) for proper multiline matching
- Non-greedy ensures we stop at the (fetch|push) suffix1 parent eda818c commit cb42d4a
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4377 | 4377 | | |
4378 | 4378 | | |
4379 | 4379 | | |
| 4380 | + | |
4380 | 4381 | | |
4381 | | - | |
4382 | | - | |
| 4382 | + | |
| 4383 | + | |
4383 | 4384 | | |
4384 | 4385 | | |
| 4386 | + | |
4385 | 4387 | | |
4386 | 4388 | | |
4387 | 4389 | | |
| |||
0 commit comments