Created
February 21, 2009 05:43
-
-
Save kiko/67907 to your computer and use it in GitHub Desktop.
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
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