Skip to content

Commit

Permalink
better feedback on loop prevention
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Dec 25, 2012
1 parent 3379180 commit 908c537
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
FileUtils.rm_rf dir

push = JSON.parse(params[:payload])
return if push["commits"].first["author"]["name"] == name
if push["commits"].first["author"]["name"] == name
puts "This is just the callback from JekyllBot's last commit... aborting."
return
end

url = push["repository"]["url"] + ".git"
url["https://"] = "https://" + username + ":" + password + "@"
Expand Down

0 comments on commit 908c537

Please sign in to comment.