diff options
author | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-27 08:06:51 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-27 08:06:51 -0800 |
commit | 07ebb951368ed31bdaebc2e820c62ced22c8bbe4 (patch) | |
tree | 729d483ad8f66cf7907bedbb2d01dec6d2856654 /tests/test_helper.rb | |
parent | 3fddf300bd33b356540bee50ae17590ea9b61341 (diff) | |
download | third_party-ruby-git-07ebb951368ed31bdaebc2e820c62ced22c8bbe4.tar.gz third_party-ruby-git-07ebb951368ed31bdaebc2e820c62ced22c8bbe4.tar.xz third_party-ruby-git-07ebb951368ed31bdaebc2e820c62ced22c8bbe4.zip |
added Matthias and Simon to credits for the gitrb code
fixed an issue with raw object tree formatting
added ls_tree implementation in raw git
Diffstat (limited to 'tests/test_helper.rb')
-rw-r--r-- | tests/test_helper.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_helper.rb b/tests/test_helper.rb index 9907ffe..e40174a 100644 --- a/tests/test_helper.rb +++ b/tests/test_helper.rb @@ -28,6 +28,16 @@ class Test::Unit::TestCase end end + + def with_temp_bare + in_temp_dir do |path| + g = Git.clone(@wbare, 'new') + Dir.chdir('new') do + yield g + end + end + end + def create_temp_repo(clone_path) filename = 'git_test' + Time.now.to_i.to_s + rand(300).to_s.rjust(3, '0') @tmp_path = File.join("/tmp/", filename) |