diff --git a/pykat/testing/web/templates/finesse_test.html b/pykat/testing/web/templates/finesse_test.html index b4fc6caf6e6e8fc22f71f55cf91af6487232870f..15fcfca385a5767fc970a81a01030607529e5de2 100644 --- a/pykat/testing/web/templates/finesse_test.html +++ b/pykat/testing/web/templates/finesse_test.html @@ -442,7 +442,13 @@ blist.empty(); for(var i=0; i<branches.length; i++){ - blist.append($('<option>', { value: branches[i], text: branches[i]})); + var opt = $('<option>', { value: branches[i], text: branches[i]}); + + if (branches[i] == "develop") { + opt.attr("selected","selected"); + } + + blist.append(opt); } updateLogEntries(); diff --git a/pykat/testing/web/web_interface.py b/pykat/testing/web/web_interface.py index 3869db1db41394198a424c79488ddaece9bf3d56..21a405ba8bed692b2691fc4321848c13872298c0 100644 --- a/pykat/testing/web/web_interface.py +++ b/pykat/testing/web/web_interface.py @@ -400,7 +400,10 @@ def finesse_get_branches(): for b in out.split("\n"): vals = b.split("/") if len(vals) >= 3: - branches.append(vals[2].split(" ")[0]) + branch = vals[2].split(" ")[0] + + if branch != "HEAD": + branches.append(branch) return jsonify(branches=branches)