File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CI
22
33on :
4- push :
5- branches :
6- - ' **'
74 pull_request :
85 branches :
96 - develop
Original file line number Diff line number Diff line change 11[package ]
22name = " gitkit"
3- version = " 0.1.1 "
3+ version = " 0.1.2 "
44edition = " 2021"
55description = " Standalone CLI for configuring git repos — hooks, .gitignore, and .gitattributes"
66license = " MIT"
Original file line number Diff line number Diff line change 11use anyhow:: { Context , Result } ;
22use clap:: Subcommand ;
3- use std:: { fs, os :: unix :: fs :: PermissionsExt , path:: Path } ;
3+ use std:: { fs, path:: Path } ;
44
55use crate :: utils:: { confirm, find_repo_root} ;
66
@@ -166,6 +166,7 @@ fn show(hook: &str) -> Result<()> {
166166
167167#[ cfg( unix) ]
168168fn 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" ) ?;
You can’t perform that action at this time.
0 commit comments