gitty 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gitty/hook.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +1 -1
data/lib/gitty/hook.rb
CHANGED
@@ -135,7 +135,7 @@ class Gitty::Hook
|
|
135
135
|
meta_data["targets"].each do |target|
|
136
136
|
targetd_path = base_directory + "#{target}.d"
|
137
137
|
rm_f(targetd_path + name)
|
138
|
-
FileUtils.rmdir(targetd_path) if Dir.glob(targetd_path + "*").empty?
|
138
|
+
FileUtils.rmdir(targetd_path) if Dir.glob((targetd_path + "*").to_s).empty?
|
139
139
|
end
|
140
140
|
rm(target_hook_path)
|
141
141
|
# TODO - clean up helpers
|
data/spec/spec_helper.rb
CHANGED