From: Tobias Ulmer Date: Mon, 20 Aug 2012 09:02:08 +0000 (+0200) Subject: Remove confusing warning message X-Git-Tag: e2factory-2.3.13rc1~159 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=574c3c55dccdb7bed6a4005523ebce134e01dcd2;p=e2factory.git Remove confusing warning message Signed-off-by: Tobias Ulmer --- diff --git a/global/e2-fetch-project.lua b/global/e2-fetch-project.lua index 485e5b5..6ee572f 100644 --- a/global/e2-fetch-project.lua +++ b/global/e2-fetch-project.lua @@ -139,9 +139,7 @@ if p.branch then local e = e:append("checking out branch failed: %s", p.branch) local args = string.format("-n1 refs/heads/%s", p.branch) local rc, re = e2lib.git(nil, "rev-list", args) - if rc then - e2lib.warnf("WOTHER", "Branch exists: %s No need to check out.", p.branch) - else + if not rc then local args = string.format( "--track -b '%s' 'origin/%s'", p.branch, p.branch) local rc, re = e2lib.git(nil, "checkout", args)