From adf7fca33194d8edead6f84bb3e20cb8d038fa30 Mon Sep 17 00:00:00 2001 From: Fred Leitz Date: Tue, 11 Aug 2015 14:06:16 -0700 Subject: [PATCH] Fix undefined method '>' for exitstatus Ensure existstatus is never nil so it can be compared to 1 --- lib/git/lib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/lib.rb b/lib/git/lib.rb index a0c25de6..2ce3c8e2 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -898,7 +898,7 @@ def command(cmd, opts = [], chdir = true, redirect = '', &block) command_thread = nil; - exitstatus = nil + exitstatus = 2 with_custom_env_variables do command_thread = Thread.new do