Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GitHub Mirroring WebHook
require 'sinatra'
require 'json'
set :bind, '0.0.0.0'
post '/payload' do
# push = JSON.parse(request.body.read)
# puts "I got some JSON: #{push.inspect}"
system 'git fetch --all --prune'
system 'git push --mirror ssh://git@stash.osaro.net:7999/odin/core.git'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.