summaryrefslogtreecommitdiffstats
path: root/GitAutoDeploy.py
diff options
context:
space:
mode:
authorchivorotkiv <shmakov@omich.net>2015-05-02 09:38:04 +0600
committerchivorotkiv <shmakov@omich.net>2015-05-02 09:38:04 +0600
commit1e085259cd760156e0ca2bb43f29e6c00f493734 (patch)
tree41b6fa3973faabf09bce3d7b8cbe03e723eb60b4 /GitAutoDeploy.py
parentee1eab544524da42caf7186c1de30d3506da0a76 (diff)
downloadGit-Auto-Deploy-1e085259cd760156e0ca2bb43f29e6c00f493734.zip
Git-Auto-Deploy-1e085259cd760156e0ca2bb43f29e6c00f493734.tar.gz
Git-Auto-Deploy-1e085259cd760156e0ca2bb43f29e6c00f493734.tar.bz2
Fix case if there is no branch in config file
Diffstat (limited to 'GitAutoDeploy.py')
-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