Skip to content

Instantly share code, notes, and snippets.

@kiko
Created February 21, 2009 05:43
Show Gist options
  • Save kiko/67907 to your computer and use it in GitHub Desktop.
Save kiko/67907 to your computer and use it in GitHub Desktop.
diff --git a/model/page.rb b/model/page.rb
index f31c90c..0609aa0 100644
--- a/model/page.rb
+++ b/model/page.rb
@@ -96,6 +96,7 @@ class Page
File.open(file, 'w+'){|i|
i.puts content.gsub(/\r\n|\r/, "\n")
}
+ G.add(File.join(language, "#{@name}#{EXT}")) unless @revision
message = G.better_commit(comment, :files => [repo_file], :author => author)
@revision = message[/Created commit (\w+):/, 1]
rescue Git::GitExecuteError => ex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment