]> git.e2factory.org Git - e2factory.git/commitdiff
git: correct test for rawsrc.checkout
authorTobias Ulmer <tu@emlix.com>
Fri, 24 May 2019 12:15:08 +0000 (14:15 +0200)
committerTobias Ulmer <tu@emlix.com>
Fri, 24 May 2019 12:27:17 +0000 (14:27 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
plugins/git.lua

index 3839559eda09a47237cb82cb88ef971ad306f8a5..b5ed230e05eb4d4fdbe602664979396e07813bd5 100644 (file)
@@ -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