As don't mkdir directly before, should not delete dir directly too.
Signed-off-by: Li Yuanchao lyc163mail@163.com --- lib/git_mirror.rb | 1 - 1 file changed, 1 deletion(-)
diff --git a/lib/git_mirror.rb b/lib/git_mirror.rb index c7dd019..f5c653b 100644 --- a/lib/git_mirror.rb +++ b/lib/git_mirror.rb @@ -46,7 +46,6 @@ class GitMirror ret = !stderr.include?('fatal') break if ret end - FileUtils.rm_r(mirror_dir) unless ret return ret end