summaryrefslogtreecommitdiffstats
path: root/lib/git/path.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/path.rb')
-rw-r--r--lib/git/path.rb4
1 files changed, 2 insertions, 2 deletions
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