From: Tobias Ulmer Date: Wed, 20 Nov 2013 16:46:38 +0000 (+0100) Subject: Handle sourceset2ref errors correctly X-Git-Tag: e2factory-2.3.15rc1~352 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=4432238d807191863ac812d197bb8bf165787c2c;p=e2factory.git Handle sourceset2ref errors correctly Signed-off-by: Tobias Ulmer --- diff --git a/plugins/git.lua b/plugins/git.lua index 0c5cfb6..25c4e9e 100644 --- a/plugins/git.lua +++ b/plugins/git.lua @@ -569,7 +569,10 @@ function git.toresult(info, sourcename, sourceset, directory) if sourceset == "tag" or sourceset == "branch" then local ref, tmpfn - ref = generic_git.sourceset2ref(sourceset, src.branch, src.tag) + ref, re = generic_git.sourceset2ref(sourceset, src.branch, src.tag) + if not ref then + return false, e:cat(re) + end tmpfn, re = e2lib.mktempfile() if not tmpfn then