]> source.dussan.org Git - redmine.git/commitdiff
scm: change gunzip to tar -z option for scm repository setup in lib/tasks/testing...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 11 Feb 2011 15:30:45 +0000 (15:30 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 11 Feb 2011 15:30:45 +0000 (15:30 +0000)
Pipe does not work on Mingw Ruby.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4806 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/testing.rake

index 1f43a11568d154d22d7fa364da92265cd71dfc6b..266dcf9ca48de968d3e0402c3a2e4827aa1a165e 100644 (file)
@@ -51,7 +51,8 @@ namespace :test do
       (supported_scms - [:subversion, :mercurial]).each do |scm|\r
         desc "Creates a test #{scm} repository"\r
         task scm => :create_dir do\r
-          system "gunzip < test/fixtures/repositories/#{scm}_repository.tar.gz | tar -xv -C tmp/test"\r
+          # system "gunzip < test/fixtures/repositories/#{scm}_repository.tar.gz | tar -xv -C tmp/test"
+          system "tar -xvz -C tmp/test -f test/fixtures/repositories/#{scm}_repository.tar.gz"
         end\r
       end\r
       \r