Commit da48ca58 authored by Valery Sizov's avatar Valery Sizov

Issue #135 - Repository stay after project remove

parent c463eeb0
...@@ -32,6 +32,8 @@ sqlite as default db ...@@ -32,6 +32,8 @@ sqlite as default db
# install this library first # install this library first
sudo easy_install pygments sudo easy_install pygments
echo "gitlabhq ALL = (git) NOPASSWD: /bin/rm" | sudo tee -a /etc/sudoers
sudo gem install bundler sudo gem install bundler
bundle bundle
......
...@@ -42,7 +42,7 @@ class Gitosis ...@@ -42,7 +42,7 @@ class Gitosis
end end
def destroy_project(project) def destroy_project(project)
FileUtils.rm_rf(project.path_to_repo) `rm -Rf #{project.path_to_repo}`
conf = IniFile.new(File.join(@local_dir,'gitosis','gitosis.conf')) conf = IniFile.new(File.join(@local_dir,'gitosis','gitosis.conf'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment