diff options
author | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-10 15:34:12 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-10 15:34:12 -0800 |
commit | efcce7fc123b9e64fb9d93224e4e78d09144af3d (patch) | |
tree | 5c9966a11b18218d6e2f655e7f34a7604530b2a1 /lib/git/path.rb | |
parent | fde3263abc5c7866aa7dce7aef28eacaa33d7664 (diff) | |
download | third_party-ruby-git-efcce7fc123b9e64fb9d93224e4e78d09144af3d.tar.gz third_party-ruby-git-efcce7fc123b9e64fb9d93224e4e78d09144af3d.tar.xz third_party-ruby-git-efcce7fc123b9e64fb9d93224e4e78d09144af3d.zip |
got clone and init to work - my first writing functions
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 |