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
materialize does not restore the executable bit on checkout #237
Found while reviewing #236 (Codex review comment on worktree::lay_out_added_view).
worktree::materialize (and the widen helper added in #236, which mirrors it) ignores the recorded FileMode and writes with std::fs::write. On Unix a tracked EXEC file therefore comes back without execute bits after switch, merge, rebase or sparse set, and the next commit reads it back as FILE. read_worktree does read the mode from the filesystem (worktree.rs ~143), so the round trip is lossy.
Suggested fix: apply the mode in one shared write helper used by materialize and lay_out_added_view, with a test per entry point. Needs a check that it does not flip modes on filesystems without a mode bit.
Activity
test(repo): remove exec-bit test directories on exit
fix(repo): restore the executable bit on checkout (#242)
fix(repo): widen-laid files keep the recorded executable bit (#224, #237
feat(repo): sparse follow-ups: partial-clone sidecar check, widen whi…