From 84eeff034805f3b13d0cb2f5f52d4edab5aa964c Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 15 Oct 2014 16:06:48 +0600 Subject: [PATCH] Buildbot: Fix for branch detection from the file name --- build_files/buildbot/master_unpack.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_files/buildbot/master_unpack.py b/build_files/buildbot/master_unpack.py index 651a68b414e..efcc56328c9 100644 --- a/build_files/buildbot/master_unpack.py +++ b/build_files/buildbot/master_unpack.py @@ -71,14 +71,14 @@ def get_branch(filename): branch = "" for token in tokens: + if token == "blender": + return branch + if branch == "": branch = token else: branch = branch + "-" + token - if token == "blender": - return branch - return "" # get filename