lib/danger/scm_source/git_repo.rb in danger-additional-logging-0.0.6 vs lib/danger/scm_source/git_repo.rb in danger-additional-logging-0.0.7

- old
+ new

@@ -52,10 +52,12 @@ def exec(string) require "open3" Dir.chdir(self.folder || ".") do git_command = string.split(" ").dup.unshift("git") Open3.popen2(default_env, *git_command) do |_stdin, stdout, _wait_thr| - stdout.read.rstrip + output = stdout.read.rstrip + puts output # Print the captured output + output # Return the captured output end end end def head_commit