Skip to content

Commit adf7fca

Browse files
committed
Fix undefined method '>' for exitstatus
Ensure existstatus is never nil so it can be compared to 1
1 parent 14738bb commit adf7fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ def command(cmd, opts = [], chdir = true, redirect = '', &block)
898898

899899
command_thread = nil;
900900

901-
exitstatus = nil
901+
exitstatus = 2
902902

903903
with_custom_env_variables do
904904
command_thread = Thread.new do

0 commit comments

Comments
 (0)