Commit da48ca58914264cd58cf5e3863e9256d61b00d6a

Authored by Valery Sizov
1 parent c463eeb0

Issue #135 - Repository stay after project remove

Showing 2 changed files with 3 additions and 1 deletions   Show diff stats
README.rdoc
... ... @@ -32,6 +32,8 @@ sqlite as default db
32 32  
33 33 # install this library first
34 34 sudo easy_install pygments
  35 +
  36 + echo "gitlabhq ALL = (git) NOPASSWD: /bin/rm" | sudo tee -a /etc/sudoers
35 37  
36 38 sudo gem install bundler
37 39 bundle
... ...
lib/gitosis.rb
... ... @@ -42,7 +42,7 @@ class Gitosis
42 42 end
43 43  
44 44 def destroy_project(project)
45   - FileUtils.rm_rf(project.path_to_repo)
  45 + `rm -Rf #{project.path_to_repo}`
46 46  
47 47 conf = IniFile.new(File.join(@local_dir,'gitosis','gitosis.conf'))
48 48  
... ...