Sha256: d7d4c61925ab9585119d622ee060d1628277e6a5294e69f376df09a0a7958012

Contents?: true

Size: 563 Bytes

Versions: 30

Compression:

Stored size: 563 Bytes

Contents

#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../test_helper'

class TestRepack < Test::Unit::TestCase
  def setup
    set_file_paths
  end
  
  def test_repack
    in_temp_dir do |path|
      r1 = Git.clone(@wbare, 'repo1')
        

      r1.chdir do 
        new_file('new_file', 'new content')
      end
      r1.add
      r1.commit('my commit')

      # see how big the repo is      
      size1 = r1.repo_size

      r1.repack
      
      # see how big the repo is now, should be smaller
      assert(size1 > r1.repo_size)      
    end
  end
end

Version data entries

30 entries across 30 versions & 4 rubygems

Version Path
titanous-git-1.1.0 tests/units/test_repack.rb
redcar-dev-0.12.1dev-java plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-dev-0.12.0dev-java plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.11 plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.11.0dev plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.10 plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.9.2 plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.9.1 plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.9.0 plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.8.1 plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.8 plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.7 plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.6.1 plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.6 plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.6.1dev plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.5.1 plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.5 plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.5.6dev plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.5.5dev plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb
redcar-0.5.4dev plugins/scm_git/vendor/ruby-git/tests/units/test_repack.rb