lib/docman/commands/git_commit_cmd.rb in docman-0.0.13 vs lib/docman/commands/git_commit_cmd.rb in docman-0.0.14
- old
+ new
@@ -8,12 +8,11 @@
raise "Context should be of type 'Info'" unless @context.is_a? Docman::Info
end
before_execute do
unless GitUtil.repo_changed? @context['root']['full_build_path']
- raise NoChangesError, "Repo not changed needed, commit not needed"
+ raise NoChangesError, "Repo not changed, commit not needed" unless @context.need_rebuild?
end
- # @not_execute = true unless GitUtil.repo_changed? @context['root']['full_build_path']
end
def execute
message = "name: #{@context['name']} updated, state: #{@context['state']}"
with_logging(message) do
\ No newline at end of file