lib/kosmos/git_adapter.rb in kosmos-0.0.4 vs lib/kosmos/git_adapter.rb in kosmos-0.0.5

- old
+ new

@@ -1,25 +1,24 @@ -require 'shellwords' - module Kosmos module GitAdapter class << self def init_repo(path) Dir.chdir(path) do `git init` `git config user.name Kosmos` `git config user.email kosmos@kosmos.kosmos` + `git config core.autocrlf false` File.open('.gitignore', 'w') do |file| file.write "!*\n" end end end def commit_everything(repo_path, commit_message) Dir.chdir(repo_path) do `git add -A -f` - `git commit --allow-empty -m #{commit_message.shellescape}` + `git commit --allow-empty -m "#{commit_message}"` end end def revert_commit(repo_path, commit) Dir.chdir(repo_path) do