Skip to content

Commit ae9e688

Browse files
authored
Merge pull request #49 from python/revert-branch-pin
Revert "carry over rogue patch from old box"
2 parents 3120c69 + 494658c commit ae9e688

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

codespeed/settings.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
## General default options ##
55
WEBSITE_NAME = "MySpeedSite" # This name will be used in the reports RSS feed
66

7-
DEF_ENVIRONMENT = None #Name of the environment which should be selected as default
8-
9-
DEF_BRANCH = "master" # Defines the default branch to be used.
10-
# In git projects, this branch is usually be calles
11-
# "master"
7+
DEF_ENVIRONMENT = None # Name of the environment which should be selected as default
128

139
DEF_BASELINE = None # Which executable + revision should be default as a baseline
1410
# Given as the name of the executable and commitid of the revision

codespeed/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,8 @@ def timeline(request):
552552
branch_list.sort()
553553

554554
defaultbranch = ""
555-
if settings.DEF_BRANCH in branch_list:
556-
defaultbranch = settings.DEF_BRANCH
555+
if defaultproject.default_branch in branch_list:
556+
defaultbranch = defaultproject.default_branch
557557
if data.get('bran') in branch_list:
558558
defaultbranch = data.get('bran')
559559

0 commit comments

Comments
 (0)