lib/kosmos/versioner.rb in kosmos-0.0.1 vs lib/kosmos/versioner.rb in kosmos-0.0.2.pre.test2

- old
+ new

@@ -1,7 +1,5 @@ -require 'rugged' - module Kosmos class Versioner class << self INIT_COMMIT_MESSAGE = "INIT: Initialize Kosmos" @@ -42,10 +40,12 @@ def uninstall_package(path, package) to_revert = GitAdapter.list_commits(path).find do |commit| commit.post? && commit.subject == package.title end - GitAdapter.revert_commit(path, to_revert, uninstall_message(package)) + GitAdapter.revert_commit(path, to_revert) + Util.run_post_processors!(path) + GitAdapter.commit_everything(path, uninstall_message(package)) end private def pre_install_message(package)