From 6b1c513513d20eb68d78299b0d19fb404d10014c Mon Sep 17 00:00:00 2001 From: Scisco Date: Thu, 17 Jul 2014 14:04:34 -0400 Subject: Fixed issue with config item naming --- config.sample.json | 2 +- jekyll-hook.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.sample.json b/config.sample.json index 59a4c41..01da368 100644 --- a/config.sample.json +++ b/config.sample.json @@ -1,7 +1,7 @@ { "gh_server": "github.com", "temp": "/home/ubuntu/jekyll-hook", - "public-repo": true, + "public_repo": true, "scripts": { "build": "./scripts/build.sh", "publish": "./scripts/publish.sh" diff --git a/jekyll-hook.js b/jekyll-hook.js index 80db6fd..a5d61fa 100755 --- a/jekyll-hook.js +++ b/jekyll-hook.js @@ -49,7 +49,7 @@ app.post('/hooks/jekyll/:branch', function(req, res) { /* owner */ params.push(data.owner); /* giturl */ - if (config.public-repo) { + if (config.public_repo) { params.push('https://' + config.gh_server + '/' + data.owner + '/' + data.repo + '.git'); } else { params.push('git@' + config.gh_server + ':' + data.owner + '/' + data.repo + '.git'); -- cgit v1.2.3