This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |