From d6df8072ce741b78bbc94db23c698aca7f2e7851 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Fri, 24 May 2019 14:15:08 +0200 Subject: [PATCH] git: correct test for rawsrc.checkout Signed-off-by: Tobias Ulmer --- plugins/git.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/git.lua b/plugins/git.lua index 3839559..b5ed230 100644 --- a/plugins/git.lua +++ b/plugins/git.lua @@ -128,9 +128,9 @@ function git.git_source:initialize(rawsrc) self._location = rawsrc.location self._tag = rawsrc.tag - if rawsrc.checkout then + if rawsrc.checkout ~= nil then if type(rawsrc.checkout) ~= boolean then - error(err.new("checkout' must be a boolean")) + error(err.new("'checkout' must be a boolean")) end self._checkout = rawsrc.checkout end -- 2.39.5