lib/docman/git_util.rb in docman-0.0.58 vs lib/docman/git_util.rb in docman-0.0.59

- old
+ new

@@ -103,13 +103,13 @@ Dir.chdir path result = `git rev-parse --short origin/#{branch}` result.delete!("\n") end - def self.push(root_path, version, show_result = true) + def self.push(root_path, version, no_pull = false) Dir.chdir root_path - exec "pull origin #{version}", show_result - exec "push origin #{version}", show_result + exec "pull origin #{version}" unless no_pull + exec "push origin #{version}" end def self.tag(root_path, tag) Dir.chdir root_path exec %Q(tag -a -m "Tagged to #{tag}" "#{tag}") \ No newline at end of file