]> git.e2factory.org Git - e2factory.git/commitdiff
Remove confusing warning message
authorTobias Ulmer <tu@emlix.com>
Mon, 20 Aug 2012 09:02:08 +0000 (11:02 +0200)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:06 +0000 (19:07 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
global/e2-fetch-project.lua

index 485e5b592ac45ab9492c9bc1834de963e0ef315c..6ee572fd3bd0b48a5666687bae446c41e008e40a 100644 (file)
@@ -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)