Skip to content

Commit 6bb04fa

Browse files
ewdurbindiegorusso
authored andcommitted
carry over rogue patch from old box
1 parent 31a1c79 commit 6bb04fa

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

codespeed/settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
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
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"
812

913
DEF_BASELINE = None # Which executable + revision should be default as a baseline
1014
# 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 defaultproject.default_branch in branch_list:
556-
defaultbranch = defaultproject.default_branch
555+
if settings.DEF_BRANCH in branch_list:
556+
defaultbranch = settings.DEF_BRANCH
557557
if data.get('bran') in branch_list:
558558
defaultbranch = data.get('bran')
559559

0 commit comments

Comments
 (0)