summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xGitAutoDeploy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/GitAutoDeploy.py b/GitAutoDeploy.py
index d58037b..1bc6ead 100755
--- a/GitAutoDeploy.py
+++ b/GitAutoDeploy.py
@@ -102,7 +102,7 @@ class GitAutoDeploy(BaseHTTPRequestHandler):
if(repository['url'] == repoUrl):
res.append({
'path': repository['path'],
- 'branch': (repository['branch'] or 'master')
+ 'branch': ('branch' in repository) and repository['branch'] or 'master'
})
return res