diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08b4101..ca01695 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,6 @@ name: CI on: - push: - branches: - - '**' pull_request: branches: - develop diff --git a/Cargo.toml b/Cargo.toml index 78c704c..ed24e97 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gitkit" -version = "0.1.1" +version = "0.1.2" edition = "2021" description = "Standalone CLI for configuring git repos — hooks, .gitignore, and .gitattributes" license = "MIT" diff --git a/src/hooks/mod.rs b/src/hooks/mod.rs index df682d0..5f642ed 100644 --- a/src/hooks/mod.rs +++ b/src/hooks/mod.rs @@ -1,6 +1,6 @@ use anyhow::{Context, Result}; use clap::Subcommand; -use std::{fs, os::unix::fs::PermissionsExt, path::Path}; +use std::{fs, path::Path}; use crate::utils::{confirm, find_repo_root}; @@ -166,6 +166,7 @@ fn show(hook: &str) -> Result<()> { #[cfg(unix)] fn set_executable(path: &Path) -> Result<()> { + use std::os::unix::fs::PermissionsExt; let mut perms = fs::metadata(path)?.permissions(); perms.set_mode(0o755); fs::set_permissions(path, perms).context("Failed to set executable permission")?;