test/test_helper.rb
# Fills the current sandbox folder with the files
# found in the given repository
Fills the current sandbox folder with the files
found in the given repository
Fills the current sandbox folder with the files found in the given repository
def sandbox_init(repository)
      FileUtils.cp_r(File.join(TestCase::LIBGIT2_FIXTURE_DIR, repository), @_sandbox_path)
      Dir.chdir(File.join(@_sandbox_path, repository)) do
        File.rename(".gitted", ".git") if File.exist?(".gitted")
        File.rename("gitattributes", ".gitattributes") if File.exist?("gitattributes")
        File.rename("gitignore", ".gitignore") if File.exist?("gitignore")
      end
      Rugged::Repository.new(File.join(@_sandbox_path, repository))
    end
def sandbox_init ( repository ) FileUtils . cp_r ( File . join ( TestCase :: LIBGIT2_FIXTURE_DIR , repository ) , @_sandbox_path ) Dir . chdir ( File . join ( @_sandbox_path , repository ) ) do File . rename ( ".gitted" , ".git" ) if File . exist? ( ".gitted" ) File . rename ( "gitattributes" , ".gitattributes" ) if File . exist? ( "gitattributes" ) File . rename ( "gitignore" , ".gitignore" ) if File . exist? ( "gitignore" ) end Rugged :: Repository . new ( File . join ( @_sandbox_path , repository ) ) end
Fills the current sandbox folder with the files
found in the given repository
Fills the current sandbox folder with the files found in the given repository
repository
<not_specific>