Skip to content

Commit bfc5ef6

Browse files
authored
Merge pull request #5 from JheisonMB/develop
fix: Windows build compatibility and release workflow
2 parents b149c89 + 7bcc83b commit bfc5ef6

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: CI
22

33
on:
4-
push:
5-
branches:
6-
- '**'
74
pull_request:
85
branches:
96
- develop

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "gitkit"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2021"
55
description = "Standalone CLI for configuring git repos — hooks, .gitignore, and .gitattributes"
66
license = "MIT"

src/hooks/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use anyhow::{Context, Result};
22
use clap::Subcommand;
3-
use std::{fs, os::unix::fs::PermissionsExt, path::Path};
3+
use std::{fs, path::Path};
44

55
use crate::utils::{confirm, find_repo_root};
66

@@ -166,6 +166,7 @@ fn show(hook: &str) -> Result<()> {
166166

167167
#[cfg(unix)]
168168
fn set_executable(path: &Path) -> Result<()> {
169+
use std::os::unix::fs::PermissionsExt;
169170
let mut perms = fs::metadata(path)?.permissions();
170171
perms.set_mode(0o755);
171172
fs::set_permissions(path, perms).context("Failed to set executable permission")?;

0 commit comments

Comments
 (0)