Commit 7968e3f
Escape special characters for GitUsernamePasswordBinding in withCrede… (#1443)
* Escape special characters for GitUsernamePasswordBinding in withCredentials
* Fix test for GitUsernamePasswordBinding in withCredentials
* Adapt writing ASKPASS from git-client-plugin
* Fix tests
* Reduce diffs by retaining old, ugly formatting of comment
In the future, the repository will be formatted with spotless and that
ugliness will be banished forever. Helps my code review to make the
diffs small now.
* Make filename encoding methods private
No need to make them visible outside the class where they are used.
Also adds the same comment on these methods as is used on the methods
in the git client plugin so that future consumers will know to not use
them for any other purpose than their current very limited use.
* Add more sample passwords
* Move assertions into existing conditional
---------
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>1 parent c75dea6 commit 7968e3f
File tree
2 files changed
+42
-12
lines changed- src
- main/java/jenkins/plugins/git
- test/java/jenkins/plugins/git
2 files changed
+42
-12
lines changedLines changed: 33 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
148 | 154 | | |
149 | 155 | | |
150 | 156 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
157 | 162 | | |
158 | 163 | | |
159 | 164 | | |
160 | 165 | | |
161 | 166 | | |
162 | 167 | | |
163 | | - | |
164 | | - | |
| 168 | + | |
| 169 | + | |
165 | 170 | | |
166 | 171 | | |
167 | 172 | | |
| |||
170 | 175 | | |
171 | 176 | | |
172 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
173 | 198 | | |
174 | 199 | | |
175 | 200 | | |
| |||
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
129 | | - | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
309 | 312 | | |
310 | 313 | | |
311 | 314 | | |
312 | | - | |
| 315 | + | |
313 | 316 | | |
314 | 317 | | |
315 | 318 | | |
316 | 319 | | |
317 | 320 | | |
318 | 321 | | |
319 | 322 | | |
| 323 | + | |
| 324 | + | |
320 | 325 | | |
321 | 326 | | |
| 327 | + | |
| 328 | + | |
322 | 329 | | |
323 | | - | |
324 | | - | |
325 | 330 | | |
326 | 331 | | |
327 | 332 | | |
| |||
0 commit comments