Commit 2107bb5
authored
Bug in Chaneset Mapping (#2546)
Fix #2521 reported by @nirkal \n\n ✨ (ServiceCollectionExtensions.cs,
TfsGitRepositoryTool.cs): add TfsChangeSetMappingTool to service
collection and ensure required service retrieval
Add `TfsChangeSetMappingTool` to the service collection to enable its
configuration and usage within the application. Change the retrieval
method of `TfsChangeSetMappingTool` from `GetService` to
`GetRequiredService` to ensure that the service is available and to
prevent potential null reference exceptions. This change enhances the
robustness and configurability of the application by ensuring necessary
services are properly registered and retrieved.File tree
2 files changed
+3
-2
lines changed- src/MigrationTools.Clients.TfsObjectModel
- Tools
2 files changed
+3
-2
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | | - | |
| 97 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments