Skip to content
Snippets Groups Projects
Commit 6483b91e authored by Daniel Brown's avatar Daniel Brown
Browse files

removing HEAD from branch selection, making develop default

parent fa4d8049
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment