lib/gitback/repository.rb in gitback-0.1.0 vs lib/gitback/repository.rb in gitback-0.1.1
- old
+ new
@@ -36,10 +36,10 @@
dirname = File.dirname(dest_path)
# Make sure the path exists in the repo
if !File.exists?(dirname)
- FileUtils.mkpath(dirname)
+ FileUtils.mkdir_p(dirname)
end
# Copy the file(s) to the repo
if File.exists?(file_path)
# We pass remove_destination to avoid issues with symlinks