Commit a057598
fix: resolve check command source path from repo root (#120)
The check command resolved the header's source path relative to the
pipeline YAML's parent directory. Since the header stores paths relative
to the repository root (e.g. \�gents/ctf.md\), this doubled the
directory prefix when the pipeline lived in a subdirectory
(\�gents/agents/ctf.md\).
Walk up from the pipeline file to find the .git directory and use that
as the base for resolving the source path.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 368acd4 commit a057598
1 file changed
Lines changed: 30 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
217 | 229 | | |
218 | 230 | | |
219 | 231 | | |
| |||
266 | 278 | | |
267 | 279 | | |
268 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
269 | 294 | | |
270 | 295 | | |
271 | 296 | | |
| |||
0 commit comments