lib/libdolt/git.rb in libdolt-0.29.0 vs lib/libdolt/git.rb in libdolt-0.30.0

- old
+ new

@@ -21,10 +21,10 @@ module Dolt module Git def self.shell(command) stdin, stdout, stderr, wait_thread = Open3.popen3(command) - Dolt::Git::Process.new(stdin, stdout, stderr, wait_thread.value) + Dolt::Git::Process.new(stdin, stdout, stderr, wait_thread && wait_thread.value || $?) end def self.git(git_dir, command) args = Shellwords.join(command.split(" ")) shell("#{binary} --git-dir #{git_dir} #{args}")