summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Brown <ben.brown@codethink.co.uk>2018-02-23 17:04:01 +0000
committerBen Brown <ben.brown@codethink.co.uk>2018-02-23 17:04:01 +0000
commit87d1b278bdfec4b84d320fdda8a661428202f796 (patch)
tree51c5ae22b981f268c4ab2b6a15110b818d6a5daa
parent688e7ae8f0c9283f594f9c9ea9497508914b2e79 (diff)
downloadybd-87d1b278bdfec4b84d320fdda8a661428202f796.tar.gz
Explicitly check that track is True
-rw-r--r--ybd/repos.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ybd/repos.py b/ybd/repos.py
index df5d99a..9226cf5 100644
--- a/ybd/repos.py
+++ b/ybd/repos.py
@@ -100,7 +100,7 @@ def get_last_tag(gitdir):
def tracking_branch(dn):
track = app.config.get('track-branches', [])
- return (isinstance(track, list) and dn['path'] in track) or track
+ return (isinstance(track, list) and dn['path'] in track) or track is True
def ensure_ref_contains_sha(dn, gitdir, ref, sha):