SHIMADA Koji
null+****@clear*****
Fri Oct 5 10:32:51 JST 2012
SHIMADA Koji 2012-10-05 10:32:51 +0900 (Fri, 05 Oct 2012) New Revision: aa4a4d37606641e6b8b52e5ab2f4e7df07a8f116 https://github.com/logaling/logaling-server/commit/aa4a4d37606641e6b8b52e5ab2f4e7df07a8f116 Log: Add '--quiet' option to git command on GitBackended Modified files: app/models/git_backended.rb Modified: app/models/git_backended.rb (+3 -3) =================================================================== --- app/models/git_backended.rb 2012-10-04 07:32:31 +0900 (0b7f86b) +++ app/models/git_backended.rb 2012-10-05 10:32:51 +0900 (1f4202d) @@ -6,17 +6,17 @@ module GitBackended def checkout! if cloned? Dir.chdir(repository_path) do - unless system "git", "reset", "--hard" + unless system "git", "reset", "--hard", "--quiet" raise "reset failed" end - unless system "git", "pull", "--force", "origin", branch + unless system "git", "pull", "--force", "--quiet", "origin", branch raise "pull failed" end end else FileUtils.mkdir_p(repository_path) Dir.chdir(repository_path) do - unless system "git", "clone", remote_repository_url, repository_path + unless system "git", "clone", "--quiet", remote_repository_url, repository_path raise "clone failed" end end -------------- next part -------------- An HTML attachment was scrubbed... ダウンロード