From: Gordon Hecker Date: Wed, 30 Sep 2009 13:04:28 +0000 (+0200) Subject: better error handling in case of branches with no remote X-Git-Tag: e2factory-2.3.2rc1~58 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=795a7dc8f97db243569a0b0b6407c5e68ff87998;p=e2factory.git better error handling in case of branches with no remote Signed-off-by: Gordon Hecker --- diff --git a/local/git.lua b/local/git.lua index 1f3d248..4c220c3 100644 --- a/local/git.lua +++ b/local/git.lua @@ -762,9 +762,8 @@ function git.check_workingcopy(info, sourcename) expect = string.format("origin") res, re = generic_git.git_config(gitdir, query) if not res then - return false, e:cat(re) - end - if res ~= expect then + e:append("remote is not configured for branch %s", src.branch) + elseif res ~= expect then e:append("%s is not \"origin\"", query) end -- git config remote.origin.url == server:location