lib/git_cli.rb in git_cli-0.2.0 vs lib/git_cli.rb in git_cli-0.3.0
- old
+ new
@@ -79,10 +79,10 @@
def initialize
# version check
vst, tver = version
if vst
- if (tver <=> MIN_GIT_VERSION) -1
+ if (tver <=> MIN_GIT_VERSION) == -1
log_warn("Min required version of GIT is #{MIN_GIT_VERSION}. System installed GIT is version #{tver}. The output might not be correct.")
end
log_debug "System GIT version is #{tver}. Min require version is #{MIN_GIT_VERSION}"
end