Commit 492957a
Refuse on Two Repositories, Not on Two Filesystem Paths
The fallback added in this PR made every path its own root, so a run
naming two files outside any checkout was refused as spanning two
repositories. Reproduced: `prose_lint.py README.md docs/guide.md` from a
directory under no repository exits 2 here and 0 on develop. That is a
regression this PR introduced, not a pre-existing defect.
Only a repository declares a workflow model, so only distinct repositories
are ambiguous. The refusal now keys on non-empty git roots, which also
removes the need to mark non-repository roots in the message, since none
appear in it.
With no repository in play, the anchor follows discovery's own rule rather
than a second one invented here, so the rule set is decided over the tree
that will actually be read.
Two cases replace the one that asserted the marked-up message: several
loose paths are not a conflict, and one repository beside a loose path is
not either. Two real repositories still refuse, and the original defect
stays fixed, both checked live.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 56d0cf9 commit 492957a
2 files changed
Lines changed: 41 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1110 | 1110 | | |
1111 | 1111 | | |
1112 | 1112 | | |
1113 | | - | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
1125 | 1123 | | |
1126 | | - | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
1127 | 1131 | | |
1128 | 1132 | | |
1129 | 1133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1849 | 1849 | | |
1850 | 1850 | | |
1851 | 1851 | | |
1852 | | - | |
| 1852 | + | |
1853 | 1853 | | |
1854 | | - | |
1855 | | - | |
| 1854 | + | |
| 1855 | + | |
1856 | 1856 | | |
1857 | | - | |
1858 | | - | |
| 1857 | + | |
| 1858 | + | |
1859 | 1859 | | |
1860 | 1860 | | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
1861 | 1873 | | |
| 1874 | + | |
| 1875 | + | |
1862 | 1876 | | |
1863 | | - | |
1864 | | - | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
1865 | 1881 | | |
1866 | | - | |
1867 | | - | |
1868 | | - | |
| 1882 | + | |
1869 | 1883 | | |
1870 | 1884 | | |
1871 | 1885 | | |
| |||
0 commit comments