Commit c7446af
committed
🤖 fix: git polling skips fetch when lock files present
When git operations (e.g., agent tool calls) are in progress, they create
lock files in the .git directory (index.lock, shallow.lock, etc.). The
background git fetch polling would previously run regardless, potentially
causing unexpected errors or conflicts.
Now the fetch script checks for any .lock files in the .git directory
before attempting to fetch. If locks are present, it exits cleanly with
exit code 0 and the message 'SKIP: git lock files present'.
This is a non-blocking check - the polling will just try again on its
next cycle (3s later for status, exponential backoff for fetch).
_Generated with `mux`_1 parent 59be8be commit c7446af
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
91 | 102 | | |
92 | 103 | | |
93 | 104 | | |
| |||
0 commit comments