Repository navigation
Commit 3711421
fix(server): status polling no longer locks the git index
The server's background `git status` and `git diff HEAD --numstat` save
their refreshed index under index.lock, so a user's own checkout or
commit fails with "index.lock: File exists" whenever it lands during a
poll. Run server git commands with GIT_OPTIONAL_LOCKS=0, and read status
numstat with diff-index/diff-files, since porcelain `git diff` rewrites
the index even with optional locks off.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 20012eb commit 3711421
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
863 | 866 | | |
864 | 867 | | |
865 | 868 | | |
| |||
1771 | 1774 | | |
1772 | 1775 | | |
1773 | 1776 | | |
| 1777 | + | |
| 1778 | + | |
1774 | 1779 | | |
1775 | 1780 | | |
1776 | 1781 | | |
1777 | | - | |
| 1782 | + | |
1778 | 1783 | | |
1779 | 1784 | | |
1780 | 1785 | | |
| |||
1783 | 1788 | | |
1784 | 1789 | | |
1785 | 1790 | | |
1786 | | - | |
| 1791 | + | |
1787 | 1792 | | |
1788 | 1793 | | |
1789 | 1794 | | |
| |||
1816 | 1821 | | |
1817 | 1822 | | |
1818 | 1823 | | |
1819 | | - | |
| 1824 | + | |
1820 | 1825 | | |
1821 | | - | |
| 1826 | + | |
1822 | 1827 | | |
1823 | 1828 | | |
1824 | 1829 | | |
| |||
0 commit comments