lib/docman/builders/git_direct_builder.rb in docman-0.0.13 vs lib/docman/builders/git_direct_builder.rb in docman-0.0.14

- old
+ new

@@ -5,16 +5,17 @@ register_builder :git_direct_builder def execute execute_result = GitUtil.get(@context['repo'], @context['full_build_path'], @context.version_type, @context.version) # No commit hash for 'root' as it will be changed later - @context['type'] == 'root' ? @context['build_path'] : execute_result + result = @context['type'] == 'root' ? @context['build_path'] : execute_result + GitUtil.repo_changed?(@context['full_build_path']) ? result : false end def changed? stored_version = @context.stored_version['result'] # No commit hash for 'root' as it will be changed later - repo_version = @context['type'] == 'root' ? @context['build_path'] : GitUtil.get(@context['repo'], @context['full_build_path'], @context.version_type, @context.version) + repo_version = @context['type'] == 'root' ? @context['build_path'] : GitUtil.get(@context['repo'], @context['full_build_path'], @context.version_type, @context.version, true) stored_version != repo_version end end end