diff options
Diffstat (limited to 'lib/git/path.rb')
-rw-r--r-- | lib/git/path.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/path.rb b/lib/git/path.rb index 18845fa..e429d6f 100644 --- a/lib/git/path.rb +++ b/lib/git/path.rb @@ -5,9 +5,9 @@ module Git def initialize(path, check_path = true) if !check_path || File.exists?(path) - @path = path + @path = File.expand_path(path) else - raise ArgumentError, "path does not exist", path + raise ArgumentError, "path does not exist", File.expand_path(path) end end |