Skip to content

Commit

Permalink
adapt to changes in gix
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Aug 9, 2023
1 parent 46225c2 commit a201f0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plumbing/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub fn main() -> Result<()> {
let auto_verbose = !progress && !args.no_verbose;

let should_interrupt = Arc::new(AtomicBool::new(false));
gix::interrupt::init_handler({
gix::interrupt::init_handler(1, {
let should_interrupt = Arc::clone(&should_interrupt);
move || should_interrupt.store(true, Ordering::SeqCst)
})?;
Expand Down
2 changes: 1 addition & 1 deletion src/porcelain/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn main() -> Result<()> {
time::util::local_offset::set_soundness(time::util::local_offset::Soundness::Unsound);
}
let should_interrupt = Arc::new(AtomicBool::new(false));
gix::interrupt::init_handler({
gix::interrupt::init_handler(1, {
let should_interrupt = Arc::clone(&should_interrupt);
move || should_interrupt.store(true, Ordering::SeqCst)
})?;
Expand Down

0 comments on commit a201f0d

Please sign in to comment.