Skip to content

Instantly share code, notes, and snippets.

View mihael's full-sized avatar
👁️
.

Miha Plohl mihael

👁️
.
View GitHub Profile
@mihael
mihael / gitsis.rb
Created December 22, 2012 11:36 — forked from anonymous/gitsis.rb
#a simple gitosis-admin/* interface
#used at http://kitschmaster.com for managing Gitosis
module Gitsis
def save_changes(msg, config)
c_msg = `cd #{File.dirname(config)}; git commit -am '#{msg}'`
p_msg = `cd #{File.dirname(config)}; git push origin master`
"GITSIS:\n#{c_msg}\n#{p_msg}"
end