Commit e9f2740
Notify Commit: Ignore ssh subdomain to allow matching azure devops git ssh urls for notify (#1758)
* Loosely match host, ignoring ssh. subdomain to make notifiy commit hook work with azure devops
* Remove import reformatting
https://github.com/jenkinsci/git-plugin/blob/master/CONTRIBUTING.adoc says:
> Code formatting in the git plugin varies between files. Try to maintain
> reasonable consistency with the existing files where feasible. Please
> don’t perform wholesale reformatting of a file without discussing
> with the current maintainers. New code should follow the SCM API code
> style guidelines.
The SCM API code style guidelines say:
https://github.com/jenkinsci/scm-api-plugin/blob/master/CONTRIBUTING.md#imports
For code in src/test:
> * imports of anything other than JUnit classes and Hamcrest matchers are banned.
> * static imports of anything other than JUnit classes and Hamcrest
> matchers are strongly discouraged.
> * import static org.hamcrest.Matchers.*, import static org.junit.Assert.*
> are expressly permitted. Any other static * imports are discouraged
> unless code readability is significantly enhanced and the import is
> restricted to a single class.
* Ignore /_git/ meta path of https url when matching
* Ignore versioning (as used in azure devops) in ssh path
---------
Co-authored-by: Christof Schöll <[email protected]>
Co-authored-by: Mark Waite <[email protected]>1 parent 3ab523c commit e9f2740
File tree
2 files changed
+31
-1
lines changed- src
- main/java/hudson/plugins/git
- test/java/hudson/plugins/git
2 files changed
+31
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
215 | 227 | | |
216 | 228 | | |
217 | 229 | | |
218 | 230 | | |
| 231 | + | |
| 232 | + | |
219 | 233 | | |
220 | 234 | | |
221 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
599 | 615 | | |
0 commit comments