Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/hook_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ fn check_and_warn() -> Option<()> {

eprintln!("{}", warning);

// Touch marker after warning is printed
// Touch marker after warning is printed.
// Write a non-empty payload — on Windows, writing 0 bytes to an already-empty
// file may not update the mtime, which breaks the rate-limiting check.
let _ = std::fs::create_dir_all(marker.parent()?);
let _ = std::fs::write(&marker, b"");
let _ = std::fs::write(&marker, b"1");

Some(())
}
Expand Down
Loading