You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GitUI was close due to an unexpected panic (file: "src/watcher.rs") #2900
Using gitui --watcher causes "GitUI was closed due to an unexpected panic" when a directory belongs to another user.
This happens exclusively when a directory has a different owner. The error does NOT occur with files owned by another user.
Steps to reproduce:
mkdir projectX && cd projectX
Create a directory with a different owner using one of these options:
The panic comes from src/watcher.rs L76-79 on master, where the recursive watch() call is wrapped in .expect("Watch error"). When notify hits a subdirectory it can't read, it returns PermissionDenied and gitui aborts. #1688 reported the same thing in 2023 and was closed after it couldn't be reproduced from source, but the expect is still there. The watcher is only used with --watcher, and by default gitui uses the 5s tick updater (Updater::Ticker in main.rs). So running without --watcher is a workaround for now. A fix could log the watch error and fall back to the tick updater instead of panicking.
Activity
tk1475 commentedon Sep 25, 2026
The panic comes from
src/watcher.rsL76-79 on master, where the recursivewatch()call is wrapped in.expect("Watch error"). When notify hits a subdirectory it can't read, it returnsPermissionDeniedand gitui aborts. #1688 reported the same thing in 2023 and was closed after it couldn't be reproduced from source, but theexpectis still there. The watcher is only used with--watcher, and by default gitui uses the 5s tick updater (Updater::Tickerinmain.rs). So running without--watcheris a workaround for now. A fix could log the watch error and fall back to the tick updater instead of panicking.