From 574c3c55dccdb7bed6a4005523ebce134e01dcd2 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Mon, 20 Aug 2012 11:02:08 +0200 Subject: [PATCH] Remove confusing warning message Signed-off-by: Tobias Ulmer --- global/e2-fetch-project.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) -- 2.39.5