diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2010-11-02 20:45:36 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2010-11-02 20:45:36 -0200 |
commit | 4f9f675e59b98edfe9f41c7bad51591acb919634 (patch) | |
tree | be5fc51469de6bbd491808f0796578c61b385f38 | |
parent | cd45b48e8b9ff3e30fa13ea9b17b6d5a01a4b9d5 (diff) | |
download | luarocks-4f9f675e59b98edfe9f41c7bad51591acb919634.tar.gz luarocks-4f9f675e59b98edfe9f41c7bad51591acb919634.tar.bz2 luarocks-4f9f675e59b98edfe9f41c7bad51591acb919634.zip |
use absolute paths with fs.delete
-rw-r--r-- | src/luarocks/fetch/git.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/fetch/git.lua b/src/luarocks/fetch/git.lua index 6305d781..a3b763d6 100644 --- a/src/luarocks/fetch/git.lua +++ b/src/luarocks/fetch/git.lua | |||
@@ -47,8 +47,8 @@ function get_sources(rockspec, extract, dest_dir) | |||
47 | return nil, "Failed checking out tag/branch from git repository." | 47 | return nil, "Failed checking out tag/branch from git repository." |
48 | end | 48 | end |
49 | end | 49 | end |
50 | fs.delete(".git") | 50 | fs.delete(dir.path(store_dir, module, ".git")) |
51 | fs.delete(".gitignore") | 51 | fs.delete(dir.path(store_dir, module, ".gitignore")) |
52 | fs.pop_dir() | 52 | fs.pop_dir() |
53 | fs.pop_dir() | 53 | fs.pop_dir() |
54 | return module, store_dir | 54 | return module, store_dir |