Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
gh-pages fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
arturadib committed Mar 1, 2012
1 parent 71e9fd1 commit b46dd49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions run-web
Expand Up @@ -4,14 +4,14 @@
#

if [ $# -ne 1 ]; then
echo 'arguments: <main_repo_url>'
echo 'arguments: <main_repo_url> <tmp_dir>'
echo
exit
fi
MAIN_URL=$1
# DO NOT USE LOCAL TMP_DIR=./tmp ...
# otherwise 'git push' below will push to bot repo too
TMP_DIR=/tmp
TMP_DIR=$2

#
# Pull main repo
Expand Down
8 changes: 5 additions & 3 deletions server.js
Expand Up @@ -65,8 +65,10 @@ function setupServer(callback){
var payload = JSON.parse(req.body.payload);
console.log((new Date())+': received POST /newmerge');

if (payload.ref !== 'refs/heads/master')
return;
if (payload.ref !== 'refs/heads/master') {
console.log((new Date())+': /newmerge not on master branch. skipping update of gh-pages');
return;
}

queue.push(function(){
console.log((new Date())+': processing POST /newmerge');
Expand All @@ -77,7 +79,7 @@ function setupServer(callback){
pull_url: '',
pull_sha: '',
ref_url: '',
tmp_path: '',
tmp_path: config.tmp_path,
timeout: config.process_timeout_mins*60*1000,
},
function(output){
Expand Down

0 comments on commit b46dd49

Please sign in to comment.