File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ def install_master_hook
100
100
end
101
101
102
102
def uninstall_master_hook
103
- FileUtils . rm_rf ( master_hook_install_path )
103
+ FileUtils . rm_rf ( master_hook_install_path , secure : true )
104
104
end
105
105
106
106
def install_hook_symlinks
@@ -162,7 +162,7 @@ def uninstall_hook_symlinks
162
162
163
163
Dir . chdir ( hooks_path ) do
164
164
Overcommit ::Utils . supported_hook_types . each do |hook_type |
165
- FileUtils . rm_rf ( hook_type ) if overcommit_hook? ( hook_type )
165
+ FileUtils . rm_rf ( hook_type , secure : true ) if overcommit_hook? ( hook_type )
166
166
end
167
167
end
168
168
end
Original file line number Diff line number Diff line change 26
26
27
27
context 'when there is no .git directory' do
28
28
before do
29
- FileUtils . rm_rf ( '.git' )
29
+ FileUtils . rm_rf ( '.git' , secure : true )
30
30
end
31
31
32
32
it 'raises an exception' do
53
53
54
54
context 'when .git is a file' do
55
55
before do
56
- FileUtils . rm_rf ( '.git' )
56
+ FileUtils . rm_rf ( '.git' , secure : true )
57
57
echo ( "gitdir: #{ git_dir_path } " , '.git' )
58
58
end
59
59
You can’t perform that action at this time.
0 commit comments