From 795a7dc8f97db243569a0b0b6407c5e68ff87998 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Wed, 30 Sep 2009 15:04:28 +0200 Subject: [PATCH] better error handling in case of branches with no remote Signed-off-by: Gordon Hecker --- local/git.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.5