Skip to content

Commit

Permalink
fix(git2-hooks): CommandExt has invalid syntax in non-Windows envir…
Browse files Browse the repository at this point in the history
…onments
  • Loading branch information
icorbrey committed Sep 28, 2024
1 parent 022351d commit 9894c89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions git2-hooks/src/hookspath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,12 @@ impl CommandExt for Command {
/// `CREATE_NO_WINDOW` flag.
#[inline]
fn with_no_window(&mut self) -> &mut Self {
use std::os::windows::process::CommandExt;
#[cfg(windows)]
self.creation_flags(0x0800_0000)
{
use std::os::windows::process::CommandExt;
self.creation_flags(0x0800_0000);
}

self
}
}

0 comments on commit 9894c89

Please sign in to comment.