lib/docman/deployers/deployer.rb in docman-0.0.9 vs lib/docman/deployers/deployer.rb in docman-0.0.10
- old
+ new
@@ -41,12 +41,14 @@
add_actions(info, info)
end
end
path = @docroot_config.root['full_build_path']
- Dir.chdir path
- if GitUtil.repo_changed? path
- GitUtil.reset_repo path
+ if File.directory? path
+ Dir.chdir path
+ if GitUtil.repo_changed? path
+ GitUtil.reset_repo path
+ end
end
stored_config_hash = read_version_file_param('config_hash')
@config_hash = Docman::Application.instance.config.config_hash
@config_yaml = Docman::Application.instance.config.to_yaml
\ No newline at end of file