From fde3263abc5c7866aa7dce7aef28eacaa33d7664 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Sat, 10 Nov 2007 12:43:33 -0800 Subject: few hours work - diff is done --- lib/git/path.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/git/path.rb') diff --git a/lib/git/path.rb b/lib/git/path.rb index 9d6ba49..18845fa 100644 --- a/lib/git/path.rb +++ b/lib/git/path.rb @@ -3,8 +3,8 @@ module Git attr_accessor :path - def initialize(path) - if File.exists?(path) + def initialize(path, check_path = true) + if !check_path || File.exists?(path) @path = path else raise ArgumentError, "path does not exist", path -- cgit