lib/big_keeper/command/release/module.rb in bigkeeper-0.8.9 vs lib/big_keeper/command/release/module.rb in bigkeeper-0.9.0

- old
+ new

@@ -8,10 +8,12 @@ require 'big_keeper/util/pod_operator' module BigKeeper def self.release_module_start(path, version, user, module_name, ignore) BigkeeperParser.parse("#{path}/Bigkeeper") + + version = BigkeeperParser.version if version == 'Version in Bigkeeper file' module_path = BigkeeperParser.module_full_path(path, user, module_name) # stash StashService.new.stash(module_path, GitOperator.new.current_branch(module_path), module_name) @@ -30,9 +32,11 @@ end ## release finish def self.release_module_finish(path, version, user, module_name, spec) BigkeeperParser.parse("#{path}/Bigkeeper") + + version = BigkeeperParser.version if version == 'Version in Bigkeeper file' module_path = BigkeeperParser.module_full_path(path, user, module_name) # check commit Logger.error("current branch has unpush files") if GitOperator.new.has_changes(module_path)