Commit ec008a9
committed
fix(import[provenance]): Convert string entries to dict form for SKIP_UNCHANGED tagging
why: String-form config entries (e.g. "git+ssh://...") silently skip provenance
tagging due to the isinstance(live, dict) guard, breaking future --prune for those
entries.
what:
- Mirror the UPDATE_URL pattern: when live is a string, convert it to dict form
{"repo": live, "metadata": {"imported_from": ...}} before stamping provenance
- Add test_import_skip_unchanged_tags_provenance_string_entry verifying string
entries get converted and tagged1 parent fe36fbd commit ec008a9
2 files changed
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
965 | 971 | | |
966 | 972 | | |
967 | 973 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3453 | 3453 | | |
3454 | 3454 | | |
3455 | 3455 | | |
| 3456 | + | |
| 3457 | + | |
| 3458 | + | |
| 3459 | + | |
| 3460 | + | |
| 3461 | + | |
| 3462 | + | |
| 3463 | + | |
| 3464 | + | |
| 3465 | + | |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
| 3493 | + | |
| 3494 | + | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
| 3505 | + | |
3456 | 3506 | | |
3457 | 3507 | | |
3458 | 3508 | | |
| |||
0 commit comments