Sha256: 4c197f4315593c3119a6f75ccacc29cf5addf5dd642eabb585b23f51308ee771
Contents?: true
Size: 540 Bytes
Versions: 26
Compression:
Stored size: 540 Bytes
Contents
#!/usr/bin/env ruby #TODO: reqwrite using rspec require 'rubygems' lib_root = '../lib' require File.expand_path("#{lib_root}/git_repo",File.dirname(__FILE__)) require 'pp' repo_path = File.expand_path('fixtures/rugged_test1/repo1.git',File.dirname(__FILE__)) repo = DtkCommon::GitRepo::Branch.new(repo_path,'branch1') %w{test_file.txt dir/nested.txt dir/nested_dir/second_level.txt bad bad_dir/bad}.each do |path| begin content = repo.get_file_content(path) pp [path,content] rescue => e pp [path,e.class,e.to_s] end end
Version data entries
26 entries across 26 versions & 1 rubygems