File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class CommunityTestSettings(CommunityDevSettings):
16
16
17
17
DEBUG = False
18
18
TEMPLATE_DEBUG = False
19
+ LOCAL_GIT_BRANCHES = True
19
20
20
21
@property
21
22
def LOGGING (self ): # noqa - avoid pep8 N802
Original file line number Diff line number Diff line change 15
15
import git
16
16
from builtins import str
17
17
from django .core .exceptions import ValidationError
18
+ from django .conf import settings
18
19
from git .exc import BadName
19
20
20
21
from readthedocs .config import ALL
@@ -182,6 +183,8 @@ def branches(self):
182
183
# ``repo.remotes.origin.refs`` returns remote branches
183
184
if repo .remotes :
184
185
branches += repo .remotes .origin .refs
186
+ if getattr (settings , 'LOCAL_GIT_BRANCHES' , False ):
187
+ branches += repo .branches
185
188
186
189
for branch in branches :
187
190
verbose_name = branch .name
You can’t perform that action at this time.
0 commit comments