lib/gitdocs/runner.rb in gitdocs-0.5.0.pre5 vs lib/gitdocs/runner.rb in gitdocs-0.5.0.pre6
- old
+ new
@@ -100,10 +100,11 @@
File.delete(message_file)
else
message = 'Auto-commit from gitdocs'
end
- result = @repository.push(@last_synced_revision, message)
+ @repository.commit(message)
+ result = @repository.push
return if result.nil? || result == :no_remote || result == :nothing
level, title, message = case result
when :ok then [:info, "Pushed #{change_count(latest_author_count)}", "'#{root}' has been pushed"]
when :conflict then [:warn, "There was a conflict in #{root}, retrying", '']