Repository navigation
Commit 7da3065
committed
fix(source-control): a query or fragment after .git keeps the repository identity
The .git suffix was only stripped at the end of the whole remote string, so
https://github.com/owner/repo.git?view=compact kept it and was identified as
owner/repo.git. Strip it from the parsed URL path, and drop the query and
fragment of URL remotes before reading the repository path.
Fixes #34807
AI-assisted; verified with the tests and tools listed above.1 parent 146c03e commit 7da3065
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
0 commit comments